<div><font color="#000000"><font>Can you send the message logs from each?  Just the first few lines with the login messages and a little after should be enough.<br></font></font></div><div><font color="#000000"><font><br></font></font></div>

<div><font color="#000000"><font>Also, please send the configurations for each side.<br></font></font></div><div><br></div><div>-Grant</div><div><br></div><div class="gmail_quote">On Sat, May 12, 2012 at 4:35 PM, Remco de Koning <span dir="ltr"><<a href="mailto:remco@solid-trading.com" target="_blank">remco@solid-trading.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="NL" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US">Hi all,</span></p><p class="MsoNormal">

<span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">I'm new to this mailing list, so I'm not quite sure whether this question was already asked and answered, so I'll give it a try.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">I have an acceptor and an initiator that are both using the QuickFIXn library (new release 1.2.0). When the initiator is sending</span></p>

<p class="MsoNormal"><span lang="EN-US">a logon request, it sends tag 141(ResetSeqNumFlag)=Y, as it wants to reset the sequence numbers. The acceptor seems to</span></p><p class="MsoNormal"><span lang="EN-US">ignore this flag which could lead to sequence numbers not being, nor becoming, in sync. A short snip from the event.log and</span></p>

<p class="MsoNormal"><span lang="EN-US">the messages.log (note: SFX_ADMIN_INTERFACE is the acceptor, CPPTestClient is the initiator):</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Event.log</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.675 : Connecting to 127.0.0.1 on port 9500</span></p><p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.675 : Connection succeeded</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.706 : Initiated logon request</span></p><p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.768 : Received logout request</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.768 : Sending logout response</span></p><p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.768 : Session FIX.4.2:CPPTestClient->SFX_ADMIN_INTERFACE disconnecting: Received logout request</span></p>

<p class="MsoNormal"><span lang="EN-US">Messages.log</span></p><p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.706 : 8=FIX.4.29=9335=A34=149=CPPTestClient52=<a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.69056=SFX_ADMIN_INTERFACE98=0108=30141=Y10=174</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.768 : 8=FIX.4.29=12635=534=71549=SFX_ADMIN_INTERFACE52=<a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.76856=CPPTestClient58=MsgSeqNum too low, expecting 9 but received 110=153</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.768 : 8=FIX.4.29=7535=534=249=CPPTestClient52=<a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:12:40.76856=SFX_ADMIN_INTERFACE10=099</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">I had expected a logon-response such as the following (actually copied from older logs, when the same acceptor was linked to the old .NET wrapper</span></p>

<p class="MsoNormal"><span lang="EN-US">around the C++ version of QuickFIX):</span></p><p class="MsoNormal"><span lang="EN-US"><a href="tel:20120507-08" value="+12012050708" target="_blank">20120507-08</a>:24:31.401 : 8=FIX.4.29=9335=A34=149=BigBoss_Keiga52=<a href="tel:20120507-08" value="+12012050708" target="_blank">20120507-08</a>:24:31.37056=SFX_ADMIN_INTERFACE98=0108=30141=Y10=188</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120507-08" value="+12012050708" target="_blank">20120507-08</a>:24:31.401 : 8=FIX.4.29=9335=A34=149=SFX_ADMIN_INTERFACE52=<a href="tel:20120507-08" value="+12012050708" target="_blank">20120507-08</a>:24:31.40156=BigBoss_Keiga98=0108=30141=Y10=183</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">I am able to fix this in the code of the library (actually in the NextLogon-method of Session.cs) by replacing the line </span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">if</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas"> (!state_.IsInitiator && <span style="color:blue">this</span>.ResetOnLogon)</span></p>

<p class="MsoNormal"><span lang="EN-US">with</span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue">if</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas"> (!state_.IsInitiator && (<span style="color:blue">this</span>.ResetOnLogon || state_.ReceivedReset))</span></p>

<p class="MsoNormal"><span lang="EN-US">which leads to a behavior that seems to work:</span></p><p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:13:59.908 : 8=FIX.4.29=9335=A34=149=CPPTestClient52=<a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:13:59.84556=SFX_ADMIN_INTERFACE98=0108=30141=Y10=187</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:14:00.095 : 8=FIX.4.29=9335=A34=149=SFX_ADMIN_INTERFACE52=<a href="tel:20120512-21" value="+12012051221" target="_blank">20120512-21</a>:14:00.06456=CPPTestClient98=0108=30141=Y10=167</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">My question is the following: Have any of you ran into the same situation and  - if so - how did you solve it? I doubt that my change in the code is the correct</span></p>

<p class="MsoNormal"><span lang="EN-US">way to solve it ...</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Kind regards,</span></p>

<p class="MsoNormal"><span lang="EN-US">                Remco de Koning</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p></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" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br></font></font></div>

<div><font><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><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>

</font></div><br>