[Quickfix-developers] Log files and startup question
Brought to you by:
orenmnero
From: Radhika S. <Rad...@Pi...> - 2004-12-28 13:31:09
|
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=3DFIX.4.09=3D5935=3DA34=3D149=3DAAAA52=3D20041227-22:14:4456=3DBBBBB=3D= 0108=3D3010=3D119 18 17:14:44.384 0828 0027 {MainForm::CacheMessage} Msg is: 8=3DFIX.4.09=3D5935=3DA34=3D149=3DAAAA52=3D20041227-22:14:4556=3DAAAA=3D0= 108=3D3010=3D120 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=3DFIX.4.09=3D5935=3DA34=3D149=3DAAAA52=3D20041227-22:14:4456=3DBBBB98=3D= 0108=3D3010=3D119 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=3DFIX.4.09=3D5935=3DA34=3D249=3DAAAA52=3D20041227-22:14:4956=3DBBBB98=3D= 0108=3D3010=3D125 18 17:14:49.681 0828 0027 {MainForm::CacheMessage} Msg is: 8=3DFIX.4.09=3D5935=3DA34=3D149=3DAAAA52=3D20041227-22:14:5156=3DAAAA98=3D= 0108=3D3010=3D117 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 |