<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>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-<span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">initializing </span>the current session?</div>
<div><br></div><div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div><span style="background-color: rgba(0, 0, 0, 0);">20151120-07:00:38.656 : Connection succeeded<br>20151120-07:00:38.675 : Session reset: ResetOnLogon<br>20151120-07:00:38.696 : Session reset: ResetSeqNumFlag<br>20151120-07:00:38.698 : Initiated logon request<br>20151120-07:00:38.970 : Sequence numbers reset due to ResetSeqNumFlag=Y<br>20151120-07:00:40.899 : Received logon<br><font color="#ff0000">20151120-07:00:48.843 : Invalid message: Expected BodyLength=295, Received BodyLength=255<br>20151120-07:00:48.868 : Session FIX.4.2:client->Q_SERVER disconnecting: QuickFix.InvalidMessage: Invalid message: Expected BodyLength=295, Received BodyLength=255</font><br>   在 QuickFix.Session.Next(MessageBuilder msgBuilder)<br>   在 QuickFix.Session.NextMessage(String msgStr)<br>   在 QuickFix.Session.Next(String msgStr)<br>   在 QuickFix.SocketInitiatorThread.ProcessStream()<br>   在 QuickFix.SocketInitiatorThread.Read()<br><font color="#ff0000">20151120-07:00:48.903 : Connecting to 10.253.251.93 on port 3383<br>20151120-07:00:48.909 : Connection succeeded</font><br>20151120-07:00:48.921 : Session reset: ResetOnLogon<br>20151120-07:00:48.929 : Session reset: ResetSeqNumFlag<br><font color="#ff0000">20151120-07:00:48.930 : Initiated logon request</font><br>20151120-07:00:49.400 : Sequence numbers reset due to ResetSeqNumFlag=Y</span></div><div><span style="background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0);">Justin Chen</span></div><div><span style="background-color: rgba(0, 0, 0, 0);">Thanks</span></div></div></span></div>
</body></html>