Most of us use fixed session times per QF process. Hence this bug was
not noted.
The issue is in ThreadedSocketInitiator code - code that creates the
socket was not aware of session times after the session ended..
These are your steps. This is a fix if you are using
ThreadedSocketInitiator. This is also a fix for an older QF version -
the StartDay,EndDay parameters are not included in this calculation.
In ThreadedSocketInitiator::socketThread() method, after the "delete
pConnection;" statement in line 202, add the following code. This will
sleep till session start time.
if (!sessp->isSessionTime())
{
long numsecs = sessp->getSecondsToStart();
process_sleep(abs(numsecs));
}
In Session.cpp (src/C++) define this function to be:
long Session::getSecondsToStart()
{
UtcTimeOnly tnow;
tnow.setCurrent();
long rnum = m_startTime - tnow;
// if we are already past startTime for today,
// get startTime for next calendar day.
if (rnum < 0) return rnum + UTC_DAY;
}
Also, add a declaration in Session.h file.
Regards,
Guru.
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Xizhen Wang
Sent: Tuesday, January 18, 2005 2:18 PM
To: Oren Miller; qui...@li...
Subject: Re: [Quickfix-developers] initiator still trying to connect
after EndTime..?
QuickFIX Documentation:
http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX FAQ:
http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ
QuickFIX Support: http://www.quickfixengine.org/services.html
Can anyone answer this question? I wonder how others
can put QuickFix in production with this problem
unsolved...
Thanks
2005-01-12 08:08
Hi,
At the endtime, my initiator dropped the connection.
This is right. However, it keeps trying to reconnect
after that. After Connection succeeds, it drops the
connection again, and then connct again.... This is
odd.
Can anyone help?
Thanks!
Alvin
--- Oren Miller <or...@qu...> wrote:
> This may be a bug, I'll investigate it.
>
> --oren
>
> ----- Original Message -----
> From: "Xizhen Wang" <wan...@ya...>
> To: <qui...@li...>
> Sent: Wednesday, January 12, 2005 11:16 AM
> Subject: [Quickfix-developers] When is Logout Msg
> sent out?
>
>
> > QuickFIX Documentation:
> >
>
http://www.quickfixengine.org/quickfix/doc/html/index.html
> > QuickFIX FAQ:
>
http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ
> > QuickFIX Support:
> http://www.quickfixengine.org/services.html
> >
> > Hi, I just wonder on what condition QF sends out
> the
> > Logout message from Initiator? It seems it does
> not
> > send out the Logout msg at EndTime. It simply
> drops
> > the connection.
> >
> > Could anyone clarify? Thanks
> > Alvin
> >
> > =====
> > /)_/)
> > ( ._.)
> > c(")(")
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile
> phone.
> > http://mobile.yahoo.com/maildemo
> >
> >
> >
>
-------------------------------------------------------
> > The SF.Net email is sponsored by: Beat the
> post-holiday blues
> > Get a FREE limited edition SourceForge.net t-shirt
> from ThinkGeek.
> > It's fun and FREE -- well,
> almost....http://www.thinkgeek.com/sfshirt
> > _______________________________________________
> > Quickfix-developers mailing list
> > Qui...@li...
> >
>
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
> >
>
>
=====
/)_/)
( ._.)
c(")(")
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE
limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and
FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
|