简体   繁体   English

QuickFIX启动器发送注销请求,并且不重新连接

[英]QuickFIX Initiator sends logout request and does not reconnect

I am using a FIX session to get TradeCaptureReports. 我正在使用FIX会话来获取TradeCaptureReports。 When connection is established, I get responses to TradeCaptureRequest. 建立连接后,我得到对TradeCaptureRequest的响应。 After logon, heartbeat messages are sending and receiving. 登录后,心跳消息正在发送和接收。

But then FIX initiator sends logout request and does not reconnect, even if ReconnectInterval is set to 1 in session config. 但是,即使会话配置中的ReconnectInterval设置为1,FIX启动器也会发送注销请求,并且不会重新连接。

event log: 事件日志:

08:23:56 : Initiated logon request
08:23:56 : Logon contains ResetSeqNumFlag=Y, reseting sequence numbers to 1
08:23:56 : Received logon response
08:25:42 : Initiated logout request

I need to keep QuickFIX connection alive and keep sending scheduled TradeCaptureRequests. 我需要保持QuickFIX连接的活动状态,并继续发送计划的TradeCaptureRequests。 Do you have any idea, what can cause this logout? 您有什么想法,什么原因可以导致此注销?


Message log after logon request and response: 登录请求和响应后的消息日志:

8=FIX.4.4|9=56|35=0|34=3|49=**|52=20151203-08:24:56.310|56=***|10=169|
8=FIX.4.4|9=56|35=0|49=***|56=**|34=3|52=20151203-08:24:55.771|10=179|
8=FIX.4.4|9=56|35=0|34=4|49=**|52=20151203-08:25:26.313|56=***|10=171|
8=FIX.4.4|9=56|35=0|49=***|56=**|34=4|52=20151203-08:25:25.772|10=179|
8=FIX.4.4|9=56|35=5|34=5|49=**|52=20151203-08:25:42.338|56=***|10=182|

Session Config: 会话配置:

HeartBtInt=30
ReconnectInterval=1
ResetOnLogon=Y
StartTime=00:00:00
EndTime=00:00:00

I won't be able to test this until Monday, but I don't think you can set your StartTime to be equal to your EndTime. 我要等到星期一才能进行测试,但是我认为您不能将StartTime设置为等于EndTime。 That would explain why it's disconnecting, because it doesn't think it's time for the session to be up. 这可以解释为什么断开连接,因为它认为会话启动的时间到了。

QuickFix does support week long sessions, if you use the StartDay and EndDay parameters, in conjunction with the StartTime and EndTime ones. 如果您将StartDay和EndDay参数与StartTime和EndTime一起使用,则QuickFix确实支持为期一周的会话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM