{{Quickfixn}} How to catch transport-layer exception

陈荣澍 chenrongshu at yxinvestment.com
Thu Nov 19 23:16:11 PST 2015


Everytime there is a transport-layer exception, QF will kick out the current session and re-init a logon request like below. Is there a way to catch this kind of exception to avoid re-initializing the current session?

20151120-07:00:38.656 : Connection succeeded
20151120-07:00:38.675 : Session reset: ResetOnLogon
20151120-07:00:38.696 : Session reset: ResetSeqNumFlag
20151120-07:00:38.698 : Initiated logon request
20151120-07:00:38.970 : Sequence numbers reset due to ResetSeqNumFlag=Y
20151120-07:00:40.899 : Received logon
20151120-07:00:48.843 : Invalid message: Expected BodyLength=295, Received BodyLength=255
20151120-07:00:48.868 : Session FIX.4.2:client->Q_SERVER disconnecting: QuickFix.InvalidMessage: Invalid message: Expected BodyLength=295, Received BodyLength=255
   在 QuickFix.Session.Next(MessageBuilder msgBuilder)
   在 QuickFix.Session.NextMessage(String msgStr)
   在 QuickFix.Session.Next(String msgStr)
   在 QuickFix.SocketInitiatorThread.ProcessStream()
   在 QuickFix.SocketInitiatorThread.Read()
20151120-07:00:48.903 : Connecting to 10.253.251.93 on port 3383
20151120-07:00:48.909 : Connection succeeded
20151120-07:00:48.921 : Session reset: ResetOnLogon
20151120-07:00:48.929 : Session reset: ResetSeqNumFlag
20151120-07:00:48.930 : Initiated logon request
20151120-07:00:49.400 : Sequence numbers reset due to ResetSeqNumFlag=Y

Justin Chen
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20151120/63dbf954/attachment.htm>


More information about the Quickfixn mailing list