[Quickfix-developers] Calling fromAdmin() before disconnect
Brought to you by:
orenmnero
From: Daniel M. <Dan...@ma...> - 2003-12-02 23:23:52
|
I am looking at adding a change to Session.cpp that would allow fromAdmin() to be called with the offending message that failed the validLogonState() test. Here is the scenario, I try to logon to a FIX server but my logon gets rejected for any number of reasons, sequence number too low, invalid permissions, etc. Some FIX servers send back a Logout Message, some send a Reject Message with a text field explaining why the logon was denied or rejected. I think it is reasonable to allow the application to inspect these return messages. =20 I propose the following in Session.cpp: =20 change line 880 from: catch ( std::exception& ) { disconnect(); return false; } =20 to: catch ( std::exception& ) {=20 if ( Message::isAdminMsgType( msgType ) ) fromCallback( msgType, msg, m_sessionID ); disconnect();=20 return false;=20 } Daniel May =20 =20 =20 =20 |