{{Quickfixn}} QF does not reconnect

Ivanildo Junior juniorfrenzel at gmail.com
Mon Jan 25 08:57:34 PST 2016


I had a problem with this method to, and to fix it, i did some loop into Read
method when calls the readsome to keep reading until he gets some return
from it or my number of tries expires.

I Also tried to increment the timeoutMilliseconds variable but didn't solve
anything, so i did this:


Read(){
   int maxtries = 10; // u can put any value u want;
   int numTries = 0;
   (Don't remember the type of object) result = null;

   While (result == null && numTries < maxtries )
   {
         try
         {
             result  = ReadSome();
         }catch(Exception)
         {
   // u can decide what to do with de exception here.
         }

         numTries ++;
   }

on my code, i did nothing to treat the exception right now, but i might
implement something to deal with it.

My Problem was related to my network that is really super slow causing the
QF to throw a timeout exception because of it.

Sorry for my bad english,

I Hope that helps you.



2016-01-25 14:12 GMT-02:00 Francis Gingras <francis at tradeintegration.com>:

> Hi,
>
> Recently I have started seeing this issue where QF/n 1.5 does not
> reconnect on its own after the counterparty drops the connection. Any ideas?
>
> 20160124-22:35:34.815 : Created session
> 20160124-22:35:34.830 : Connecting to 127.0.0.1 on port 1234
> 20160124-22:35:34.835 : Connection succeeded
> 20160124-22:35:34.966 : Session reset: ResetSeqNumFlag
> 20160124-22:35:34.970 : Initiated logon request
> 20160124-22:35:44.839 : Session FIX.4.4:ME->THEM:ORDER disconnecting:
> System.Net.Sockets.SocketException (0x80004005): An existing connection was
> forcibly closed by the remote host
>   at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32
> timeoutMilliseconds)
>   at QuickFix.SocketInitiatorThread.Read()
>
> -> here I get an OnLogout event and nothing after.
>
> My QF settings are:
>
> [DEFAULT]
> ConnectionType=initiator
> BeginString=FIX.4.4
> ReconnectInterval=30
> FileStorePath=C:\Trading\Fix\Store
> FileLogPath=C:\Trading\Fix
> HeartBtInt=30
> LogonTimeout=61
> TimeZone=Eastern Standard Time
> IgnorePossDupResendRequests=Y
> StartTime=17:30:00
> EndTime=17:30:00
> StartDay=sun
> EndDay=fri
> UseDataDictionary=Y
> DataDictionary=C:\Trading\FIX44.xml
> ValidateUserDefinedFields=N
> ValidateFieldsHaveValues=N
> ValidateFieldsOutOfOrder=N
> ResetOnLogout=N
> ResetOnDisconnect=N
> CheckLatency=N
> RequiresOrigSendingTime=N
> HttpAcceptPort=8071
> PersistMessages=Y
> [SESSION]
> SenderCompID=ME
> TargetCompID=THEM
> SessionQualifier=ORDER
> SocketConnectHost=127.0.0.1
> SocketConnectPort=1234
>
> Thanks,
>
> Francis Gingras
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20160125/51848b6b/attachment-0002.htm>


More information about the Quickfixn mailing list