Re: [Quickfix-developers] When are sequence numbers incremented?
Brought to you by:
orenmnero
From: djmob <dan...@bl...> - 2011-12-30 15:39:25
|
>From my own testing, setting a breakpoint inside fromAdmin (instead of fromApp) looking at sequence number of the message and killing the app before letting fromAdmin return, it appears that the QuickFIX received sequence number is incremented (looking at the sequence number file) even though fromAdmin did not return. If this is correct then I need to implement some code to remember the last fully processed sequence number and then force a resend from that point forwards when my app starts as I need to guarantee that all messages were fully processed in case of a crash... I suspect I'm missing something here though as I am surprised that QuickFix increments the sequence number in this way as this seems flawed imo. I'm still learning here so any help appreciated. djmob wrote: > > I understand that QuickFIX manages message sequence numbers (using the > sequence number file) and sends ResendRequests as needed. I am a little > unclear though exactly how this is done and if it works for my particular > scenario. For example if the QuickFIX engine were to receive an > ExecutionReport message but before fromApp() returns the process crashes, > was the received sequence number count already incremented even though I > did not fully process the message? I need to guarantee that fromApp () > fully executed before the sequence number count is incremented, so that > the correct ResendRequest message is sent upon restarting my application > in case of a crash. > > Thanks in advance for any help. > > > -- View this message in context: http://old.nabble.com/When-are-sequence-numbers-incremented--tp33052499p33055252.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |