RE: [Quickfix-developers] Question about HeartBeats and Logouts
Brought to you by:
orenmnero
From: <OM...@th...> - 2002-05-09 18:47:25
|
Bernard, It looks like your problems stem from your StartTime and EndTime range. For some reason QuickFIX is having problems with the range you specified 00:00:03 - 23:59:59. I will look into why this is but there is a work-around for you. If you just set the StartTime and the EndTime both to 00:00:00, you should see QuickFIX behave as you expect. When you set the StartTime and EndTime to be the same, QuickFIX treats your sessions as 24 hours, so I think this is the behavior you really want. Please let us know if this solves your problem. --Oren Miller, ThoughtWorks |---------+-----------------------------------------------> | | "Bernard Spanger" | | | <bsp...@gx...> | | | Sent by: | | | qui...@li...ur| | | ceforge.net | | | | | | | | | 05/09/2002 11:23 AM | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: <qui...@li...> | | cc: <OM...@th...> | | Subject: RE: [Quickfix-developers] Question about HeartBeats and Logouts | >----------------------------------------------------------------------------------------------| In response to Oren's request, here are the config files. I have attached them, but I have also included the text in this mail. Thanks. Client Config -------------- [DEFAULT] ReconnectInterval=20 HeartBtInt=30 [SESSION] BeginString=FIX.4.1 SenderCompID=CLIENT TargetCompID=SERVER ConnectionType=initiator SocketConnectPort=13003 SocketConnectHost=10.101.25.31 DataDictionary=C:/FIX/spec/FIX41.xml FileStorePath=C:/FIX/log StartTime=00:00:03 EndTime=23:59:59 Server Config ------------- [DEFAULT] ReconnectInterval=20 HeartBtInt=30 SocketAcceptPort=13003 [SESSION] BeginString=FIX.4.1 SenderCompID=SERVER TargetCompID=CLIENT ConnectionType=acceptor DataDictionary=C:/FIX/spec/FIX41.xml FileStorePath=C:/FIX/log StartTime=00:00:02 EndTime=23:59:59 -----Original Message----- From: OM...@th... [mailto:OM...@th...] Sent: Thursday, May 09, 2002 12:13 PM To: bsp...@gx... Cc: qui...@li...; qui...@li... Subject: Re: [Quickfix-developers] Question about HeartBeats and Logouts Can you post your configuration files for your initiator and your acceptor. I have some theories but it would help to see these. --oren |---------+-----------------------------------------------> | | "Bernard Spanger" | | | <bsp...@gx...> | | | Sent by: | | | qui...@li...ur| | | ceforge.net | | | | | | | | | 05/09/2002 10:56 AM | | | | |---------+-----------------------------------------------> > --------------------------------------------------------------------------- -------------------| | | | To: <qui...@li...> | | cc: | | Subject: [Quickfix-developers] Question about HeartBeats and Logouts | > --------------------------------------------------------------------------- -------------------| Folks, I am experimenting with QuickFix, and I have a couple of questions. I have created a CLIENT (initiator) and a SERVER (acceptor) which both run on the same machine. Each is a simple application that does nothing other than display a message when each of the Application member functions is called. Basically, all they do is instantiate an initiator (or acceptor) with the appropriate parameters, and start it. The onRun() just sleeps in an infinite loop. ReconnectInterval is 20, and HeartBeatInterval is 30 for both. I expect to see onCreate() called on both applications, which I do. Next, I expect to see onLogon() called for both, which I eventually do. After that, I guess I expect to see an exchange of heartbeats and nothing else. Instead, after about 30 seconds, onLogout() is called on both CLIENT and SERVER, followed by repeated calls to onLogon() and onLogout(). Looking at the message log, I see repeated logon messages, occasionally a resend request, and very rarely a heartbeat message. My questions are as follows: 1) Am I expecting the right thing? 2) Does the Engine handle heartbeats, or does my application have to generate heartbeats itself? 3) I delete files in the log directory each time before I restart. Why does onLogon() sometimes get called immediately, and sometimes take 20 seconds or so to get called? 4) Why does onLogout() get called at all? Shouldn't the session remain logged in indefinitely? 5) Why do the .message log files in my log directory periodically get wiped clean (size goes to 0). I'd appreciate any help or insight. Thanks. ------------------------------------------ Bernard Spanger bsp...@gx... G. X. Clarke & Co. 10 Exchange Place Jersey City, NJ 07302 201-200-3607 _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: ban...@so... _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers (See attached file: FixClientConfig.txt)(See attached file: FixServerConfig.txt) |