Re: [Quickfix-developers] Orders never sent vs session vs startTime
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2007-06-20 02:57:44
|
On 6/19/07, John GALLET <joh...@wa...> wrote:
>
> What happened yesterday was the following (in UTC times)
>
> - startTime in config file: 04:30
> - actual launch of process: 04:00 (yes I told them it's useless)
> - immediate "Created Session" trace from the app which is just an
> std::cout from onCreate().
> - but the counterparty was down. So QF goes and tries the 4
> SocketConnectHostN it has available in config file and of course fails on
> all of them and goes on cycling.
> - at 05:44 we start sending orders to QF
> - at 07:01 the counterparty comes up and logon succeeds
> - all the previously sent orders have never been heard of again
Have your perhaps copied this sample code from the "tradeclient" sample
application? It always discards messages instead of resending them:
void Application::toApp( FIX::Message& message, const FIX::SessionID&
sessionID )
throw( FIX::DoNotSend )
{
try
{
FIX::PossDupFlag possDupFlag;
message.getHeader().getField( possDupFlag );
if ( possDupFlag ) throw FIX::DoNotSend();
}
catch ( FIX::FieldNotFound& ) {}
std::cout << std::endl
<< "OUT: " << message << std::endl;
}
--
Caleb Epstein
|