Created by: bhaan
Changes proposed in this pull request:
- Updates acceptor/initiator stop sequence. Sends a Logout and waits for a response before invoking the application
OnLogout
callback, per FIX standard - Removes redundant calls to the application
OnLogout
callback. Currently, therun()
function insession
ultimately invokesOnLogout
when it returns, while theinSession
state has a few cases where it invokes the callback as well. - Improves the event log output for the logon and logout sequences. Following the QuickFIX/C++ implementation, a proper session event sequence will look like the following:
Initiator
2016/06/30 15:31:45.167656 Sending logon request
2016/06/30 15:31:45.185684 Received logon response
2016/06/30 15:31:49.810696 Inititated logout request
2016/06/30 15:31:49.825808 Received logout response
2016/06/30 15:31:49.825833 Disconnected
Acceptor
2016/06/30 15:31:45.170768 Received logon request
2016/06/30 15:31:45.182621 Responding to logon request
2016/06/30 15:31:49.814847 Received logout request
2016/06/30 15:31:49.815776 Sending logout response
2016/06/30 15:31:49.827149 Disconnected