Re: [Quickfix-developers] Out-of-order sequence numbers
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2003-10-23 13:01:51
|
Oren Miller wrote: > I'm not sure it is illegal, but I'm sure this behavior is not > recommended as it would cause the counterparty to send more resend > requests. My guess is that while the QF thread is resending messages, > you're app is sending messages blissfully unaware of this state. > > We made need to make QF a little smarter so this situation cannot occur. I would expect the following behaviour: - Every message sent using sendToTarget is put into the output queue (backed on FileStore or similar) - Exactly one thread sends messages to the outgoing socket. This thread also handles Resend requests, e.g. Send message 23 Send message 24 Got Resend request for message 12-17 Push current message 24 Send message 12 ... Send message 17 Pop Send message 25 ... or if the range to be resent overlaps Send message 23 Send message 24 Got Resend request for message 20-25 Modify resend to 20-24 Push current message 24 Send message 20 ... Send message 24 Pop Send message 25 ... or if the ResendRequest is in the future, just ignore it. In addition, in case of orders which shall be resent it may be necessary to replace them by GapFill messages since the orders may be outdated. Is this currently supported by QuickFIX? Cheers, Jörg > > */Joerg Thoennes <Joe...@we...>/* wrote: > > Hi all, > > in our QF 1.5.0 application I noticed the following scenario: > > - Our application (acceptor) was sending unsolicited messages > (ExecutionReports) to the counterparty > > - The counterparty requested a ResendRequest FROM: nnn TO: 0 > > - Our application fulfilled the ResendRequest, but at one point near > the end of the resent messages unsolicited messages with newer > sequence numbers got mixed with the normal flow > > Is that compliant with the FIX spec or may this be a bug in QF? > > Cheers, Jörg > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > ------------------------------------------------------------------------ > Do you Yahoo!? > The New Yahoo! Shopping > <http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail> > - with improved product search -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |