Skip to content

Commit

Permalink
acceptor now handles ResetSeqNumFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kamyshanov committed Feb 28, 2014
1 parent a535cf6 commit f2bcb3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions QuickFIXn/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,15 @@ 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

0 comments on commit f2bcb3a

Please sign in to comment.