Re: [Quickfix-developers] Waiting for automatic ResendRequest to finish?
Brought to you by:
orenmnero
|
From: Dale W. <wil...@oc...> - 2006-02-21 14:45:14
|
Edde wrote: > Say that my colleague starts with the trading in the morning when the > market opens and then at lunch time I take over. Our procedure then is > for my colleague to put his seqnums file on a third-party FTP server > and before I start up my system I replace my existing seqnums with the > one he's put on FTP. When I connect using QuickFIX our counterparty > will send me any messages that it has sent during the transition > time but these I just discard. Instead I wait until our system has > completed it's startup and when all is complete I reset my incoming > sequence number (like you said) and do a complete resend of all > messages and thus recreating the whole session. If I read this correctly, you know you're going to do the recovery before you start the application. That means that having the counterparty send the messages sent during transmission time is wasted effort, right? 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. You still have to address the issue of setting your sending sequence number if your colleague sent any messages after he captured the file he put on the FTP server and before the connection died. Do you have a way to handle that? Dale -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |