[Quickfix-developers] isSameSession() problem when StartTime==EndTime
Brought to you by:
orenmnero
|
From: Brendan B. <br...@ka...> - 2006-05-19 02:21:41
|
Hi,
Suppose I have executor.cfg and tradeclient.cfg containing
StartTime=21:00:00
EndTime=21:00:00
Suppose it's 23:59:00 UTC and I run executor and tradeclient.
Sessions connect and login.
At 00:00:00 UTC the sessions disconnect and attempt to reconnect.
I think the problem is in:
SessionTime::isSameSession(const UtcTimeOnly& start,
const UtcTimeOnly& end,
const UtcTimeStamp& time1,
const UtcTimeStamp& time2) {
...
UtcDate time1Date( time1 );
UtcDate time2Date( time2 );
if( start < end || start == end )
return time1Date == time2Date;
}
In this case:
time1 = May 19 00:00:00; now
time2 = May 18 23:59:01; creation time
so time1Date != time2Date and the session is reset.
I tried searching the mail archives on sourceforge.net but the search
engine seems to be down (no results on any query).
Does anyone have a suggestion on how to handle this?
Regards,
Brendan
|