[Quickfix-developers] Logout reason
Brought to you by:
orenmnero
|
From: Francis G. <fr...@at...> - 2005-06-13 20:47:10
|
Here's another question on an old favorite: finding the elusive logout (or
failed login) reason.
Scenario using QF from C# with the latest files from CVS. RequestNums are
set to 1,1, and the server is cycled only once a week.
QF initiator send a Logon request:
8=FIX.4.29=7535=A34=149=USER52=20050613-20:26:19.28156=TEST96=passwor
d98=0108=3010=136
and server responds with:
8=FIX.4.29=0006535=A49=TEST56=USER34=48152=20050613-20:26:19.312108=3
098=010=180
Now QF rejects the message and logs "MsgSeqNum too high, expecting 1 but
received 481" in the event log.
Question: how can I get this reject reason in fromAdmin? The client does not
'see' this rejection message so it has no idea why the login didn't work.
I added this to Session::validLogonState. This should (I think) send the
logout reason to fromAdmin, but it doesn't.
if ( msgType == MsgType_Logout )
return true;
Then I tried implementing the QuickFix.Log interface and added
public void onEvent(string @string)
{ log everything here }
but this method is never triggered.
I looked for onError but it doesn't seem to be available from C#.
What is the best way to work around this? Arbitrarily incrementing
setNextTargetMsgSeqNum() until the login is successful is clumsy at best.
Thanks,
Francis Gingras
|