[QFJ-205] Heartbeat Timeouts in 1.2.0 Created: 03/Jul/07  Updated: 04/Jul/07  Resolved: 04/Jul/07

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.2.0
Fix Version/s: 1.2.1

Type: Bug Priority: Default
Reporter: Thomas Hügel Assignee: Steve Bate
Resolution: Fixed Votes: 0
Labels: None
Environment:

1.2.0, linux


Attachments: Text File threaddump.log    

 Description   

Hello,

after exchanging the 1.1.0 libraries with the 1.2.0 ones all of my connected FIX Session counterparties complain "stale connection" or "hearbeat timeout". The session does not disconnect, but seems somehow to have a problem. The session now look like:
0 Tue Jul 03 17:34:35 GMT 2007 Heartbeat admin outbound
1 Tue Jul 03 17:34:39 GMT 2007 TestRequest admin inbound
2 Tue Jul 03 17:34:34 GMT 2007 Heartbeat admin inbound
3 Tue Jul 03 17:34:00 GMT 2007 Heartbeat admin outbound
4 Tue Jul 03 17:34:04 GMT 2007 TestRequest admin inbound
5 Tue Jul 03 17:33:59 GMT 2007 Heartbeat admin inbound
6 Tue Jul 03 17:33:25 GMT 2007 Heartbeat admin outbound
7 Tue Jul 03 17:33:29 GMT 2007 TestRequest admin inbound
8 Tue Jul 03 17:33:24 GMT 2007 Heartbeat admin inbound
9 Tue Jul 03 17:32:49 GMT 2007 Heartbeat admin outbound

inbound: 8=FIX.4.2|9=65|35=0|34=1426|49=xxx|52=20070703-17:39:15|56=xxx|369=1396|10=137|
outbound: 8=FIX.4.2|9=83|35=0|34=1397|49=xxx|52=20070703-17:38:40.395|56=xxx|112=HeartBtExt Timeout|10=093|
inbound: 8=FIX.4.2|9=88|35=1|34=1425|49=xxx|52=20070703-17:38:45|56=xxx|369=1395|112=HeartBtExt Timeout|10=067|

When i changed back to the old libraries, the problem disappears.

Best Regards
Thomas Hügel



 Comments   
Comment by Steve Bate [ 03/Jul/07 ]

Can you provide a thread dump to show what's happening after the missed heartbeat? It sounds like it might be a thread synchronization issue. Synchronization changed a lot in 1.2 so that might be related to the different behavior.

Comment by Steve Bate [ 04/Jul/07 ]

Thanks Thomas. I found the problem. One of the heartbeat values was not being set properly in the SessionState (only for initiators). Thanks again for reporting the problem so quickly.

Generated at Tue May 07 10:47:20 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.