Skip to content
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

Issue #173 - Message.IsAdmin/IsApp wrong check #174

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Issue #80 - Sequence reset on logon
See the bug #80.
  • Loading branch information
TomasVetrovsky committed Mar 12, 2013
commit 0344291c5e6ffcd52d2fa0f7fedff0af0b525d78
7 changes: 7 additions & 0 deletions QuickFIXn/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,13 @@ protected void NextLogon(Message logon)
logon.GetField(resetSeqNumFlag);
state_.ReceivedReset = resetSeqNumFlag.Obj;

if (state_.ReceivedReset)
{
this.Log.OnEvent("Logon contains ResetSeqNumFlag=Y, reseting sequence numbers to 1");
if (!state_.SentReset)
state_.Reset("Reseting because reset was requested by counterparty.");
}

if (!state_.IsInitiator && this.ResetOnLogon)
state_.Reset("ResetOnLogon");

Expand Down