-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sequence reset on logon #80
Comments
To summarize, are you just saying that QF is not handling 141 correctly? We do have an AcceptanceTest to verify this behavior: Is your scenario different than the test? |
First problem is that acceptor does not handle correctly received Logon message with ResetSeqNumFlag=Y. This bug was reported here too: Second part of my comment is about ResetSeqNumFlag (In response Logon message to a Logon message that contains ResetSeqNumFlag=Y). The behaviour adheres to the acceptance test. I have gone through the FIX specifiacation (fix-44_VOL-2_w_Errata_20030618.pdf) and have not found any information how this should work. So, It is only my opinion that the ResetSeqNumFlag should not be set in the response Logon message. FIXimate says: |
From chats with @mgatny on Nov 19/20: First part:
Second part:
|
code in TomasVetrovsky@0344291 |
We are also having this issue in the wild with live clients, and independently arrived at the same fix that TomasVetrovsky suggested. |
Thanks, @KorkyPlunger. Will prioritize for next release. |
(#80) AT: logon with reset after disconnect
The first bug in the initial report (disconnect when 141=Y received after disconnect) was fixed by PR #256 and has been in master for more than a year now. I just wrote and merged a new acceptance test to verify this bug and the fix. I'm working on tests/fix for the second bug (141=Y should not be in the Acceptor's login response) right now. |
(#80) acceptor shouldn't include 141=Y in logon responses
(connamara#80) AT: logon with reset after disconnect
(connamara#80) acceptor shouldn't include 141=Y in logon responses
Part of code has been lost from the C++ version of QuickFix in the Session.NextLogon function. The missing part should handle ResetSeqNumFlag(141) in the received logon message. I am not able to force resynchronization of communication as it was possible with the C++ version of the engine. The missing part goes:
It also seems that .Net version is very strict in response to Logon with sequence reset. When I added the code above to overcome "Sequence to low" disconnection, the .Net version of engine responds with logon message with sequence reset flag on. It is handled with the code in GenerateLogon:
IMHO this behaviour is not needed. As both sides already reset the sequence numbers when they processed the first logon message.
Test (A=Acceptor, I=Initiator):
The text was updated successfully, but these errors were encountered: