<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">Is this error being caused by messages that contain Chinese characters?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 20, 2015 at 1:16 AM, 陈荣澍 <span dir="ltr"><<a href="mailto:chenrongshu@yxinvestment.com" target="_blank">chenrongshu@yxinvestment.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<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>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>
</div><br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><font size="2"><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
</div>