Re: [Quickfix-developers] Waiting for Resend to finish? Revisited...
Brought to you by:
orenmnero
|
From: Edde <edd...@gm...> - 2006-03-22 11:55:52
|
Hi Oren, I appologize for the double post. I didn't receive my first post so I didn't think anyone else did either. > You could check the sequence number of the outgoing message against > the next expected outgoing sequence number. I'm not sure if I follow you... For the session in question I currently set the next expected sequence nbr to 1 when the session has succesfully logged on (session.setNextTargetMsgSeqNum(1). This will cause QuickFIX to request a resend of all messages. I'm not sure what you mean by "outgoing message" and "next expected outgoing sequence number". I thought it was the incoming messages that I needed to monitor and somehow check the sequence numbers to determine when the resend has finished? I guess I need to use either <session.getExpectedSenderNum()> or <session.getExpectedTargetNum()> Thanks for your assistance! /Eddie > --oren > > On Mar 21, 2006, at 8:07 AM, Edde wrote: > > > Hi Guys, > > > > I appologize to bother you with this once again... > > > > >Oren wrote: > > >So I suggest that you clear the expected sequence number *before* > > starting the application. > > >That way QuickFIX will allways request a retransmission from 1 > > thru infinity, and since QuickFIX > > >requested the retransmissions it will know what to do with them. > > > > I've now rewritten my application according to this design and it > > seems to work fine. However, I would still like to know if there is > > a way to know when QuickFIX has resent all messages? > > > > >Joerg wrote: > > >BTW, a TestRequest with a unique has to be answered by a Heartbeat > > with this unique id. > > >If you get this specific heartbeat, you know that the other side > > must have processed all > > >messages preceding this TestRequest. Of course, this does not > > prevent further resend > > >processing at any later point of time. > > > > I've tried this approach but unfortunately our counterparty doesn't > > quite live up the FIX specification in this regard. It works great > > most of the time but every now and then our counterparty "forget" > > to answer my TestRequest with the corresponding heartbeat. > > Is there another way to do this? I've noticed that QuickFIX logs > > the following event when the Resend has finished: "ResendRequest > > for messages FROM: 1 TO: XXXX has been satisfied.". Is there a way > > for me to get this message on an application level? > > Another solution I was thinking off was to check for the first > > message where the PossDupFlag isn't set and then assume that the > > Resend is finished but I'm not sure this is a fail proof solution. > > > > Any comments or suggestions will be deeply appreciated. > > Thanks, > > /Eddie > > > > |