<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Ballontekst Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.E-mailStijl17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BallontekstChar
        {mso-style-name:"Ballontekst Char";
        mso-style-priority:99;
        mso-style-link:Ballontekst;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></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<o:p></o:p></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<o:p></o:p></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<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>the messages.log (note: SFX_ADMIN_INTERFACE is the acceptor, CPPTestClient is the initiator):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Event.log<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.675 : Connecting to 127.0.0.1 on port 9500<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.675 : Connection succeeded<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.706 : Initiated logon request<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.768 : Received logout request<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.768 : Sending logout response<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.768 : Session FIX.4.2:CPPTestClient->SFX_ADMIN_INTERFACE disconnecting: Received logout request<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Messages.log<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.706 : 8=FIX.4.29=9335=A34=149=CPPTestClient52=20120512-21:12:40.69056=SFX_ADMIN_INTERFACE98=0108=30141=Y10=174<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.768 : 8=FIX.4.29=12635=534=71549=SFX_ADMIN_INTERFACE52=20120512-21:12:40.76856=CPPTestClient58=MsgSeqNum too low, expecting 9 but received 110=153<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:12:40.768 : 8=FIX.4.29=7535=534=249=CPPTestClient52=20120512-21:12:40.76856=SFX_ADMIN_INTERFACE10=099<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></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<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>around the C++ version of QuickFIX):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120507-08:24:31.401 : 8=FIX.4.29=9335=A34=149=BigBoss_Keiga52=20120507-08:24:31.37056=SFX_ADMIN_INTERFACE98=0108=30141=Y10=188<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120507-08:24:31.401 : 8=FIX.4.29=9335=A34=149=SFX_ADMIN_INTERFACE52=20120507-08:24:31.40156=BigBoss_Keiga98=0108=30141=Y10=183<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></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 <o:p></o:p></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)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>with<o:p></o:p></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))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>which leads to a behavior that seems to work:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:13:59.908 : 8=FIX.4.29=9335=A34=149=CPPTestClient52=20120512-21:13:59.84556=SFX_ADMIN_INTERFACE98=0108=30141=Y10=187<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>20120512-21:14:00.095 : 8=FIX.4.29=9335=A34=149=SFX_ADMIN_INTERFACE52=20120512-21:14:00.06456=CPPTestClient98=0108=30141=Y10=167<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></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<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>way to solve it ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Kind regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>                Remco de Koning</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>