[QFJ-693] SessionStateListener onMissedHeartBeat(), onHeartBeatTimeout() is called once network connection reestablishes after a disconnect Created: 23/Jul/12 Updated: 25/Jul/12 Resolved: 25/Jul/12 |
|
| Status: | Closed |
| Project: | QuickFIX/J |
| Component/s: | None |
| Affects Version/s: | 1.5.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Default |
| Reporter: | Saneesh Kumar | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | QuickfixJ, SessionStateListener, onHeartBeatTimeOut, onMissedHeartbeat, onTimeOut | ||
| Environment: |
Open Suse 12.1 Asparagus |
||
| Issue Links: |
|
||||||||
| Description |
|
I need to implement the SessionStateListener in the Initiator to understand when there is a network disconnect event. Firstly, I defined my Initiator to Implement SessionStateListener, Then I added the listener by: Session.lookupSession(quickfixSessionID).addStateListener(fixInitiator); and now trying to receive following callbacks to check if the network is down: @Override But the onMissedHeartBeat() and OnHeartbeatTimeout() methods are called only once the network connection is reestablished. I need to understand when the network went down and when it came back. Please send me if you have any solution for the above to [email protected] |
| Comments |
| Comment by Grant Birchmeier [ 23/Jul/12 ] |
|
This looks like a help request, not a bug. Send your question to the mailing list, and you will probably get an answer. |
| Comment by Christoph John [ 25/Jul/12 ] |
|
Works for me: code: @Override log: [2012-07-25 09:02:24,884] [DEBUG] FIX.4.2:FixGateway->FixClient: outgoing: 8=FIX.4.2|9=62|35=0|34=5|49=FixGateway|52=20120725-07:02:24.884|56=FixClient|10=091| |