Thread: [Quickfix-developers] unexpected seqnum reset (VC6)
Brought to you by:
orenmnero
From: Alexey Z. <ale...@in...> - 2005-03-03 20:55:34
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000066"> Hi All,<br> <br> I've got the following problem.<br> <br> My client application started a new session in the morning with a reset seqnum.<br> That was absolutely unexpected because seqnum in the file wasn't 1.<br> <br> I found how to reproduce that: <br> <br> 1. I have only start and end times in your configuration file<br> StartTime=00:00:00<br> EndTime=00:00:00<br> <br> 2. Change in the *.session file the day (minus one - session from the previous day)<br> <br> I found out that in the Session class constructor there is a call of reset() if the creation time (yesterday) is not the current time (today) :)).<br> <br> if( !checkSessionTime( UtcTimeStamp() ) )<br> reset();<br> ...............<br> <br> <pre class="moz-signature" cols="60">-- Regards, Alexey Zubko </pre> </body> </html> |
From: Oren M. <or...@qu...> - 2005-03-03 21:19:00
|
Sure, the sequence numbers will be reset if you are no longer in the=20 session. Those sequence numbers aren't relevant anymore because they=20 pertain to a session that no longer exists. What would you expect to=20 happen? --oren On Mar 3, 2005, at 2:55 PM, Alexey Zubko wrote: > QuickFIX Documentation:=20 > http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX=20 > FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ=20 > QuickFIX Support: http://www.quickfixengine.org/services.html Hi=20 > All, > > I've got the following problem. > > My client application started a new session in the morning with a=20 > reset seqnum. > That was absolutely unexpected because seqnum in the file wasn't 1. > > I found how to reproduce that: > > 1. I have only start and end times in your configuration file > StartTime=3D00:00:00 > EndTime=3D00:00:00 > > 2. Change in the *.session file the day (minus one - session from the=20= > previous day) > > I found out that in the Session class constructor there is a call of=20= > reset() if the creation time (yesterday) is not the current time=20 > (today) :)). > > =A0 if( !checkSessionTime( UtcTimeStamp() ) ) > =A0=A0=A0 reset(); > ............... > > > --=20 > > Regards, > Alexey Zubko > > > ------------------------------------------------------- SF email is=20= > sponsored by - The IT Product Guide Read honest & candid reviews on=20 > hundreds of IT Products from real users. Discover which products truly=20= > live up to the hype. Start reading now.=20 > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick=20 > _______________________________________________ Quickfix-developers=20 > mailing list Qui...@li...=20 > https://lists.sourceforge.net/lists/listinfo/quickfix-developers= |
From: Alexey Z. <ale...@in...> - 2005-03-03 21:28:00
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000066"> Hello Oren,<br> <br> Closing my client application in the evening I expected to receive the last sequence number in the morning.<br> My client connected to CME which is reset seqnum once a week you know.<br> <br> If I set start day, start week and the right hours in my configuration file it works OK.<br> The only thing is that session time is not updated in the file.<br> <br> I thought if StartTime and EndTime are the same and if there are no StartDay and EndDay parameters in the configuration file when QuickFix is not going to disconnect sessions. Am I wrong?<br> <br> <br> <pre class="moz-signature" cols="60">Regards, Alexey Zubko </pre> <br> Oren Miller wrote: <blockquote cite="mid...@qu..." type="cite">Sure, the sequence numbers will be reset if you are no longer in the session. Those sequence numbers aren't relevant anymore because they pertain to a session that no longer exists. What would you expect to happen? <br> <br> --oren <br> <br> On Mar 3, 2005, at 2:55 PM, Alexey Zubko wrote: <br> <br> <blockquote type="cite">QuickFIX Documentation: <a class="moz-txt-link-freetext" href="http://www.quickfixengine.org/quickfix/doc/html/index.html">http://www.quickfixengine.org/quickfix/doc/html/index.html</a> QuickFIX FAQ: <a class="moz-txt-link-freetext" href="http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ">http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ</a> QuickFIX Support: <a class="moz-txt-link-freetext" href="http://www.quickfixengine.org/services.html">http://www.quickfixengine.org/services.html</a> Hi All, <br> <br> I've got the following problem. <br> <br> My client application started a new session in the morning with a reset seqnum. <br> That was absolutely unexpected because seqnum in the file wasn't 1. <br> <br> I found how to reproduce that: <br> <br> 1. I have only start and end times in your configuration file <br> StartTime=00:00:00 <br> EndTime=00:00:00 <br> <br> 2. Change in the *.session file the day (minus one - session from the previous day) <br> <br> I found out that in the Session class constructor there is a call of reset() if the creation time (yesterday) is not the current time (today) :)). <br> <br> if( !checkSessionTime( UtcTimeStamp() ) ) <br> reset(); <br> ............... <br> <br> <br> -- <br> <br> Regards, <br> Alexey Zubko <br> <br> <br> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a> _______________________________________________ Quickfix-developers mailing list <a class="moz-txt-link-abbreviated" href="mailto:Qui...@li...">Qui...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers">https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a> <br> </blockquote> <br> </blockquote> </body> </html> |
From: Oren M. <or...@qu...> - 2005-03-03 21:40:41
|
Ah no. Having the same StartTime and EndTime indicates a 24 hour=20 session. One that will begin at 00:00:00 and end at 00:00:00 the=20 following day, for instance. If you want an infinite session, then=20 you'll have to rig isSessionTime and isSameSession to always return=20 true. There isn't a configuration setting to do this currently. --oren On Mar 3, 2005, at 3:27 PM, Alexey Zubko wrote: > Hello Oren, > > Closing my client application in the evening I expected to receive=20 > the last sequence number in the morning. > My client connected to CME which is reset seqnum once a week you = know. > > If I set start day, start week and the right hours in my=20 > configuration file it works OK. > The only thing is that session time is not updated in the file. > > I thought if StartTime and EndTime are the same and if there are no=20= > StartDay and EndDay parameters in the configuration file when QuickFix=20= > is not going to disconnect sessions. Am I wrong? > > > > Regards, > Alexey Zubko > > > Oren Miller wrote: > Sure, the sequence numbers will be reset if you are no longer in the=20= > session.=A0 Those sequence numbers aren't relevant anymore because = they=20 > pertain to a session that no longer exists.=A0 What would you expect = to=20 > happen? > > --oren > > On Mar 3, 2005, at 2:55 PM, Alexey Zubko wrote: > > > QuickFIX Documentation:=20 > http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX=20 > FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ=20 > QuickFIX Support: http://www.quickfixengine.org/services.html=A0=A0 Hi=20= > All, > > =A0I've got the following problem. > > =A0My client application started a new session in the morning with a=20= > reset seqnum. > =A0That was absolutely unexpected because seqnum in the file wasn't = 1. > > =A0I found how to reproduce that: > > =A01. I have only start and end times in your configuration file > =A0StartTime=3D00:00:00 > =A0EndTime=3D00:00:00 > > =A02. Change in the *.session file the day (minus one - session from=20= > the previous day) > > =A0I found out that in the Session class constructor there is a call = of=20 > reset() if the creation time (yesterday) is not the current time=20 > (today) :)). > > =A0=A0 if( !checkSessionTime( UtcTimeStamp() ) ) > =A0=A0=A0=A0 reset(); > =A0............... > > > --=A0 > > Regards, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Alexey Zubko > > > =A0------------------------------------------------------- SF email = is=20 > sponsored by - The IT Product Guide Read honest & candid reviews on=20 > hundreds of IT Products from real users. Discover which products truly=20= > live up to the hype. Start reading now.=20 > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick=20 > _______________________________________________ Quickfix-developers=20 > mailing list Qui...@li...=20 > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > |
From: Alexey Z. <ale...@in...> - 2005-03-03 21:48:50
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000066"> Thank you, Oren.<br> <br> I think you should mention this in the documentation.<br> <br> <pre class="moz-signature" cols="60">Regards, Alexey Zubko </pre> <br> Oren Miller wrote: <blockquote cite="mid...@qu..." type="cite">Ah no. Having the same StartTime and EndTime indicates a 24 hour session. One that will begin at 00:00:00 and end at 00:00:00 the following day, for instance. If you want an infinite session, then you'll have to rig isSessionTime and isSameSession to always return true. There isn't a configuration setting to do this currently. <br> <br> --oren <br> <br> On Mar 3, 2005, at 3:27 PM, Alexey Zubko wrote: <br> <br> <blockquote type="cite"> Hello Oren, <br> <br> Closing my client application in the evening I expected to receive the last sequence number in the morning. <br> My client connected to CME which is reset seqnum once a week you know. <br> <br> If I set start day, start week and the right hours in my configuration file it works OK. <br> The only thing is that session time is not updated in the file. <br> <br> I thought if StartTime and EndTime are the same and if there are no StartDay and EndDay parameters in the configuration file when QuickFix is not going to disconnect sessions. Am I wrong? <br> <br> <br> <br> Regards, <br> Alexey Zubko <br> <br> <br> Oren Miller wrote: <br> Sure, the sequence numbers will be reset if you are no longer in the session. Those sequence numbers aren't relevant anymore because they pertain to a session that no longer exists. What would you expect to happen? <br> <br> --oren <br> <br> On Mar 3, 2005, at 2:55 PM, Alexey Zubko wrote: <br> <br> <br> QuickFIX Documentation: <a class="moz-txt-link-freetext" href="http://www.quickfixengine.org/quickfix/doc/html/index.html">http://www.quickfixengine.org/quickfix/doc/html/index.html</a> QuickFIX FAQ: <a class="moz-txt-link-freetext" href="http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ">http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ</a> QuickFIX Support: <a class="moz-txt-link-freetext" href="http://www.quickfixengine.org/services.html">http://www.quickfixengine.org/services.html</a> Hi All, <br> <br> I've got the following problem. <br> <br> My client application started a new session in the morning with a reset seqnum. <br> That was absolutely unexpected because seqnum in the file wasn't 1. <br> <br> I found how to reproduce that: <br> <br> 1. I have only start and end times in your configuration file <br> StartTime=00:00:00 <br> EndTime=00:00:00 <br> <br> 2. Change in the *.session file the day (minus one - session from the previous day) <br> <br> I found out that in the Session class constructor there is a call of reset() if the creation time (yesterday) is not the current time (today) :)). <br> <br> if( !checkSessionTime( UtcTimeStamp() ) ) <br> reset(); <br> ............... <br> <br> <br> -- <br> <br> Regards, <br> Alexey Zubko <br> <br> <br> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a> _______________________________________________ Quickfix-developers mailing list <a class="moz-txt-link-abbreviated" href="mailto:Qui...@li...">Qui...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers">https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a> <br> <br> <br> <br> </blockquote> <br> <br> </blockquote> </body> </html> |