Re: [Quickfix-developers] Can't log on: connection drops
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-11-07 15:29:19
|
Nickolai, You need the Initiator and the Acceptor to take on the role as counter-party to the other. Right now you have set the SenderCompID for both to ND1, and the TargetCompID for both to ND2. In order to connect to each other you must reverse one of these. Essentially you are saying that these are identical sessions, so when the acceptor receives a logon message from itself it will indeed be confused and terminate the connection with extreme prejudice. You should set one of these sessions to have a SenderCompID of ND2 and a TargetCompID of ND1. Then clear out the files in your FileStorePath as it is likely in a confused state. After that you should be able to bring them up and they will happily communicate. --oren On Nov 6, 2004, at 10:58 PM, Nickolai Dobrynin 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'm very new to this, so please be patient if the > problem I have was addressed before. > > I have a client and a server running on the same > machine, and every time the initiator tries to log on, > the connection drops out immediately. Yes, there is a > FAQ that mentions this, but this FAQ has to do with > two different computers, where as in my case, only a > single machine is involved, so it definitely can't be > due to a time difference. > > Here is what happens in my case: on the initiator > side, onCreate gets called. Then toAdmin produces > 8=FIX.4.3 9=61 35=A 34=1 49=ND1 > 52=20041107-03:36:31.646 56=ND2 98=0 108=20 10=129 > Then the 'run' function is entered but very briefly, > as in a matter of seconds, onLogout is called. > > My acceptor config file is > > [DEFAULT] > ConnectionType=acceptor > ReconnectInterval=60 > SenderCompID=ND1 > SocketAcceptPort=9823 > #CheckLatency=N > MaxLatency=86400 > > [SESSION] > BeginString=FIX.4.3 > TargetCompID=ND2 > DataDictionary=/usr/software/quickfix-1.9.2/share/quickfix/FIX43.xml > StartTime=00:00:00 > EndTime=23:59:59 > FileStorePath=/home/ndobrynin/main/hw > > and my initiator config file is > > [DEFAULT] > ConnectionType=initiator > ReconnectInterval=60 > SenderCompID=ND1 > #CheckLatency=N > MaxLatency=86400 > > [SESSION] > SocketConnectPort=9823 > SocketConnectHost=172.18.121.103 > BeginString=FIX.4.3 > TargetCompID=ND2 > DataDictionary=/usr/software/quickfix-1.9.2/share/quickfix/FIX43.xml > StartTime=00:00:00 > EndTime=23:59:59 > FileLogPath=/home/ndobrynin/main/hw > FileStorePath=/home/ndobrynin/main/hw > HeartBtInt=20 > > Can anybody please tell me what the problem might be? > > > Many thanks to all, > > Nickolai Dobrynin > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |