[Quickfix-developers] non logged-on messages
Brought to you by:
orenmnero
|
From: John G. <joh...@wa...> - 2005-08-29 12:16:01
|
Hi there, Using C++ version of QF 1.10.2. on linux. I don't get what I am doing wrong here. The documentation at http://www.quickfixengine.org/quickfix/doc/html/application.html stipulates that " As soon as a session is created, you can begin sending messages to it. If no one is logged on, the messages will be sent at the time a connection is established with the counterparty." I launch an Initiator, and a trace in onCreate() says the session has been created. I send an order to it, which gets written in the directory defined by FileStorePath with the name BeginString-SenderCompID-TargetCompID.body Then I launch the ordermatch.exe test program and here is what happens from its side : <20050829-09:47:53, FIX.4.1:JGSERVER->JGCLIENT, event> (Created session) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, incoming> (8=FIX.4.19=6735=A34=249=JGCLIENT52=20050829-09:48:1056=JGSERVER98=0108=6010=254) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, event> (Received logon request) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT,outgoing> (8=FIX.4.19=6735=A34=149=JGSERVER52=20050829-09:48:1056=JGCLIENT98=0108=6010=253) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, event> (Responding to logon request) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, event> (MsgSeqNum too high, expecting 1 but received 2) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, outgoing> (8=FIX.4.19=6935=234=249=JGSERVER52=20050829-09:48:1056=JGCLIENT7=116=99999910=118) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, event> (Sent ResendRequest FROM: 1 TO: 999999) Logon - FIX.4.1:JGSERVER->JGCLIENT <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT,incoming> (8=FIX.4.19=9335=434=143=Y49=JGCLIENT52=20050829-09:48:1056=JGSERVER122=20050829-09:48:1036=3123=Y10=028) <20050829-09:48:10, FIX.4.1:JGSERVER->JGCLIENT, event> (Received SequenceReset FROM: 1 TO: 3) The same kind of things happens in the following scenario : - I let both initiator and ordermatch(acceptor) chat a little while - I kill ordermatch with a CTRL-C - I send my order to the initiator - I boot up ordermatch again => ordermatch asks for ResendRequest but the client never sends its order, only a SequenceReset Is there something special I must do in my code to handle this situation or is it a "bug" of some kind ? If I start ordermatch first, everything works just fine. Sincerely, JG |