[Quickfix-developers] RE: fromAdmin/fromApp not getting called on Logout from rejected logon
Brought to you by:
orenmnero
From: Jason F. <jf...@ty...> - 2005-01-07 14:39:50
|
> Sounds like a bug in QuickFIX. According to the FIX 4.4 spec, in the > Session Protocol section, page 6: > > "If authentication fails, the session acceptor should shut down the > connection after *optionally sending a Logout message* to indicate the > reason of failure" > > Emphasis mine. So it is possible to receive a Logout without having > successfully logged in. I think there just needs to be a small change > to Session::validLogonState to handle this case. Something like: > > if ( msgType == MsgType_Logout && m_state.sentLogon ()) > return true; > > The Session::nextLogout code should probably NOT generate a Logout > response in response to this message, however. Caleb, That's what I thought, I'll try your suggested change and see if that helps with my problem. Thanks for the tip. Jason |