Re: [Quickfix-developers] getting started - problems with example apps tradeclient and executor
Brought to you by:
orenmnero
From: Shane T. <str...@co...> - 2008-03-19 14:35:31
|
Mark, Adding "ResetOnLogon=Y" to both configuration files (for both the acceptor and initiator) might help. This makes sure that both sides start out at a sequence number of 0 during each logon. -- Shane Trotter Connamara Systems, LLC On 3/19/08, Mark Luk <ma...@tr...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi everyone, > > First, thanks in advance for all your help. I was introduced to quickfix > yesterday and I know i have a lot to catch up on. > > I tried running the example application of tradeclient and executor > found in the default example directory, and it is telling me that they > cannot create a session. > > I have modified the example configurations in such a way that I know > 'tradeclient' is acting as the initiator, and 'executor' is the > acceptor. They can hook up on the specified port, as I can see them > sending logon messages to each other. However, logon does not finish > correct, as things seem to break down when they try to synchronize > sequence numbers. > > In a nutshell, I have something like this > > ./execute execute.cfg > > and then > > ./tradeclient tradeclient.cfg > > On the execute side, I see the following printouts (Im trying my best to > not be overly verbose) > > <20080318-20:22:19, FIX.4.2:EXECUTOR->CLIENT1, event> > (Created session) > > (Accepted connection from 127.0.0.1 on port 5001) > (Received logon request) > (Responding to logon request) > (MsgSeqNum too high, expecting 1166 but received 1219) > (Sent ResendRequest FROM: 1166 TO: 0) > (Received SequenceReset FROM: 1166 TO: 1220) > <20080318-20:22:42, FIX.4.2:EXECUTOR->CLIENT1, event> > (Socket Error: Connection reset by peer.) > <20080318-20:22:42, FIX.4.2:EXECUTOR->CLIENT1, event> > (Disconnecting) > > > I looked on the client side and it said pretty much the same thing. The > critical part... > > <20080318-20:22:36, FIX.4.2:CLIENT1->EXECUTOR, event> > (Received ResendRequest FROM: 1166 TO: 0) > > <20080318-20:22:36, FIX.4.2:CLIENT1->EXECUTOR, event> > (Sent SequenceReset TO: 1220) > > Seems to me that tradeclient got executor's sequence number > synchronization message, and ignored it. As a result, the session never > gets created. > > This seems very strange to me since I have not changed any code in the > example applications. I am also running the standard configurations > found in the cfg directory. > > Does anybody have any idea what's going on? Any help would be much > appreciated! > > As a side question, any introductory reading material that would help me > get the example apps up and running would be also appreciated. > > thanks > > mark > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |