Skip to content

Improve disconnect reason when ResetOnLogon is not honoured by counter party#988

Merged
chrjohn merged 5 commits into
quickfix-j:masterfrom
Ramonster1:ramonsingh-QFJ-960_enhance_disconnect_msg_for_reset_on_login
Jul 10, 2025
Merged

Improve disconnect reason when ResetOnLogon is not honoured by counter party#988
chrjohn merged 5 commits into
quickfix-j:masterfrom
Ramonster1:ramonsingh-QFJ-960_enhance_disconnect_msg_for_reset_on_login

Conversation

@Ramonster1

Copy link
Copy Markdown
Contributor

This fixes #960 by clarifying the reason for sequence number in response not being 1 when resetOnLogon is configured to true.

As far as I could tell, it isn't necessary to add/amend a unit test for this fix as the disconnect is already tested by SessionTest.testInferResetSeqNumAcceptedWithNonInitialSequenceNumber()

…r-party

This fixes quickfix-j#960 by clarifying the reason for sequence number in response not being 1 when resetOnLogon is configured to true.
@chrjohn chrjohn changed the title Improve disconnect reason when ResetOnLogon is not honoured by counte… Improve disconnect reason when ResetOnLogon is not honoured by counter party Jun 18, 2025
Comment thread quickfixj-core/src/main/java/quickfix/Session.java Outdated
Ramonster1 and others added 2 commits June 23, 2025 20:07
-This removed disconnect case is covered on Line 2216.
Also removed case for resetOnLogon. Since we're checking for isResetSent(), the check on resetOnLogon should be redundant.
-Added return statement after disconnect(). This is behaviour is a bit inconsistent in the Session class, however it prevents duplicated state reset updates that are covered in disconnect().
@Ramonster1 Ramonster1 requested a review from chrjohn July 3, 2025 20:17
@chrjohn chrjohn added this to the QFJ 3.0.0 milestone Jul 10, 2025
@chrjohn chrjohn merged commit 4f9f3ea into quickfix-j:master Jul 10, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Received logon response before sending request" is unclear with ResetOnLogon=Y

2 participants