Re: [Quickfix-developers] Log files and startup question
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-12-28 15:10:09
|
Yeah, those are stored in the FileStore if you are passing in a FileStoreFactory. The documentation talks a little about the naming and format of these files here: http://www.quickfixengine.org/quickfix/doc/html/ class_f_i_x_1_1_file_store.html#_details The file you are interested in is the seqnums file, which contains the next sender and target seqnum to be sent. These are only read at startup however, changing them while the engine is running will have no effect. Otherwise, resetOnLogout and resetOnDisconnect should be setting your sequence numbers back to 1 for both of those events. I can't really say what is going on with your connection issues. Complete message logs (for both sides if possible) would be more helpful in diagnosing the problem. --oren On Dec 28, 2004, at 7:31 AM, Radhika Sambamurti wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: > http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi, > I am a relative FIX/QuickFix newbie, so pl. bear with me. > I am working on a fix client. > I am having session re-connect problems. > When Quickfix starts up, how does it decide which sequence number to > send a message to the server with? > My question is: does it look at the log files? > In the quickfix mail archives I read that the quickfix engine uses the > filestore, to get the last sequence number used? > > The way my QF engine is set the session object is created on a per > session basis. I logout issuing the session.logout() command and login > with session.login() But attempts to re-login are creating sequence > number mismatchs, which I cannot understand. > > From looking at the logs, the Server is definitely sending 1. > The client is starting at 1, but sends about 2 logon messages before > the > server acknowledges it, by which time the sequence number it is > expecting is > 1, whereas the server is sending back only 1. > In total there are 5 logon messages, before a request for resend > occurs. > > What I am hoping is someone can explain to me how the communication > happens between the client and the server. > Whether the log files are controlling what the next sequence number is > (in which case I should be able to remove all log files before > initiating another session) and it should work. > > both resetOnLogout and resetOnDisconnec are set to Y. > > Any ideas, how I can go about this would be helpful. > > Thanks, > Radhika > > > 18 17:14:43.728 0828 0027 {594:MainForm::cmdLogon_Click} Session > selected is: AAAA > 18 17:14:44.384 0828 0027 {MainForm::CacheMessage} Msg is: > 8=FIX.4.09=5935=A34=149=AAAA52=20041227-22:14:4456=BBBBB=0108=3010=119 > 18 17:14:44.384 0828 0027 {MainForm::CacheMessage} Msg is: > 8=FIX.4.09=5935=A34=149=AAAA52=20041227-22:14:4556=AAAA=0108=3010=120 > 04 17:14:44.400 0828 0050 {MainForm::OnSessionLogon} Session Logged On: > AAAA > 18 17:14:44.665 0828 0027 {MainForm::CacheMessage} Msg is: > 8=FIX.4.09=5935=A34=149=AAAA52=20041227-22:14:4456=BBBB98=0108=3010=119 > 04 17:14:44.665 0828 0066 {MainForm::OnSessionLogout} NOW!!!!!!! > Session > Logged Out: AAAA > 18 17:14:49.665 0828 0027 {MainForm::CacheMessage} Msg is: > 8=FIX.4.09=5935=A34=249=AAAA52=20041227-22:14:4956=BBBB98=0108=3010=125 > 18 17:14:49.681 0828 0027 {MainForm::CacheMessage} Msg is: > 8=FIX.4.09=5935=A34=149=AAAA52=20041227-22:14:5156=AAAA98=0108=3010=117 > 04 17:14:49.681 0828 0066 {MainForm::OnSessionLogon} Session Logged On: > AAAA > > event logs: > > 20041227-22:35:13 : Initiated logon request > 20041227-22:35:13 : Initiated logon request > 20041227-22:35:13 : MsgSeqNum too low, expecting 4 but received 1 > 20041227-22:35:13 : Disconnecting > 20041227-22:35:13 : Dropped Connection > 20041227-22:35:14 : Connecting to qablks02 on port 9100 > 20041227-22:35:14 : Connection succeeded > 20041227-22:35:14 : Initiated logon request > 20041227-22:35:14 : MsgSeqNum too low, expecting 4 but received 1 > 20041227-22:35:14 : Disconnecting > > > Radhika Sambamurti > Pipeline Trading Systems > Rad...@pi... > 212-370-8343 > > > ------------------------------------------------------- > 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. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |