Responding to FIX messages

Imported from previous forum

Dear All,

I have the following problem:
While testing my fix client with openfix.net
(test: 2c. Seq number too low) I receive at
once 3 messages -

  1. confirmation of my logon (ok)
  2. Heartbeat with Seq number 2 - ok
  3. Heartbear with Seq number 1 - false
    So what I do - I see the reply on my logon - just
    exactly what I expect. Then I receive a heartbeat
    and respond to it… then I receive a message with
    a wrong sequence number and I abort the session.
    The problem is OpenFix states that my reply on their heartbeat message with Seq number 2 is false - I should not reply to it. Is it ought to be so?
    Thanks in advance

Yours truly,
Dmitry V. Petrovsky

Hi Dmitry,

I think I know the reason why openfix.net failed you. In the fix 4.3 spec, session level matrix, test 2c, it states that if the MsgSeqNum is lower than expected without PossDupFlag set to Y, the expected response should be a disconnect without sending a message. In your message below, you say that you responded to the message where MsgSeqNum is lower than expected with a heartbeat message. I believe that openfix failed you because you did not disconnect immediately and instead sent a heartbeat.

I hope this helps.

-Will Walter

> Dear All,
>
> I have the following problem:
> While testing my fix client with openfix.net
> (test: 2c. Seq number too low) I receive at
> once 3 messages -
> 1. confirmation of my logon (ok)
> 2. Heartbeat with Seq number 2 - ok
> 3. Heartbear with Seq number 1 - false
> So what I do - I see the reply on my logon - just
> exactly what I expect. Then I receive a heartbeat
> and respond to it… then I receive a message with
> a wrong sequence number and I abort the session.
> The problem is OpenFix states that my reply on their heartbeat message with Seq number 2 is false - I should not reply to it. Is it ought to be so?
> Thanks in advance
>
> —
> Yours truly,
> Dmitry V. Petrovsky
>