From: Matthew S. <ms...@bi...> - 2006-03-02 01:38:30
|
Steve, No, startDay and endDay were both zero not -1. The SessionSchedule constructor doesn't set them because I'm not putting the StartDay and EndDay properties in SessionSettings. The constructor leaves weeklySession=false causing the assignment of startDay and endDay to be ignored. Thanks, Matthew Steve Bate wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi Matt, > > First, I'm assuming the startDay and endDay are -1 (the default > if no day is set) and not 0. Is that right? > > I've committed John's patches for SessionSchedule into the CVS > HEAD. I also found another bug in the schedule which may have > been causing your problem. There were unit tests for that code > but, alas, the unit tests were wrong. ;-) I've corrected both > in the HEAD. Hopefully, these changes will solve your problem. > > Regards, > > Steve > > > >> -----Original Message----- >> From: qui...@li... >> [mailto:qui...@li...] On Behalf >> Of Matthew Stone >> Sent: Wednesday, March 01, 2006 9:07 PM >> To: qui...@li... >> Subject: [Quickfix-users] Re: Are sequences automatically reset >> >> QuickFIX Documentation: >> http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> Looking at the code it appears the sequences should be reset, however >> mine are not. Here's the problem senerio: My app shuts down before >> FixEndTime then starts up the next day after FixStartTime. When the >> quickfix.SessionSchedule checks to see if isSameSession it >> returns true >> because only the time fields are compared and not the date >> fields. It >> doesn't check the date fields because the following condition >> is false: >> >> startDay < 0 && endDay < 0 >> >> startDay and endDay are 0 for me since I'm using daily >> sessions and not >> weekly. >> >> If I left my app running outside the session time boundary everything >> seems to be ok. So, my option as a workaround seems to be reseting >> manually once a day. >> >> Matthew >> >> Matthew Stone wrote: >> >>> Does quickfix automatically reset sequences when a session >>> >> changes? >> >>> Yesterday I started up a session from FixStartTime=07:00:00 to >>> FixEndTime=19:00:00 and my app finished the day with >>> >> MsgSeqNum=190. >> >>> Today, my app tried to log on with MsgSeqNum=191. I was expecting >>> quickfix to start with a new seq. >>> >>> Thanks, >>> Matthew >>> >>> qfj beta 3 >>> >>> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking >> scripting language >> that extends applications into web and mobile media. Attend >> the live webcast >> and join the prime developer group breaking into this new >> coding territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& >> dat=121642 >> _______________________________________________ >> Quickfix-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-users >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > |