Re: [Quickfix-developers] Disconnect at 00:00:00 GMT problem
Brought to you by:
orenmnero
|
From: Brian E. <azz...@ya...> - 2006-12-26 21:01:27
|
Oleg -=0A=0AI believe this was (partially) fixed in SVN. Looking at=0ASessi=
onTime.cpp, it looks like there was a change made on December 5,=0A2006 tha=
t would impact this issue.=0A=0AThe previous code checked to=0Asee if the s=
ession start date was the same as the end date and, if so,=0Adid a simple t=
ime check that, alas, doesn't work if start time and end=0Atimes are equal.=
=0A=0AOld code:=0A=0Aif (startDay =3D=3D endDay)=0A{=0A if (timeOnly < sta=
rtTime && timeOnly > endTime)=0A return false;=0A}=0A=0AThat=0Acode fail=
s if start and end times overlap (start late in one UTC day=0Aand end early=
in the next) or if they are the same. "00:00" is less=0Athan the start tim=
e (22:30) but it isn't greater than the end time=0A(22:30).=0A=0ANew code:=
=0A=0Aif (startDay =3D=3D endDay)=0A{=0A if (currentDay !=3D startDay)=0A =
return true;=0A return isSessionTime(startTime, endTime, time);=0A}=0A=
=0AThis=0Achange does three things: it makes an implicit assumption that if=
=0AstartDay=3D=3DendDay that it must be a "week-long" session, if the curre=
nt=0Aday isn't the starting day, there is no need to check the time (time=
=0Aonly applies to that day of the week), and finally, calls=0AisSessionTim=
e, which has a better time checking algorithm that tests=0Afor overlaps. Th=
is happily fixes a problem that I had two years ago=0A(although I worked ar=
ound the issue long ago).=0A=0AI don't know that=0Ait completely solves you=
r problem though. It definitely would fix the=0A"getting dumped at midnight=
" problem, but unless something upstream of=0Athis code has changed, I thin=
k it might introduce a "your session never=0Aends" problem. Last I checked =
(back in 1.11.x), QF had no way of=0Adistinguishing between a weeklong sess=
ion (Friday late-Friday early)=0Aand a "daily" session (no start/end day). =
In both cases, the "start=0Aday" equaled the "end day" (Fri-Fri was 5=3D=3D=
5, none was 1=3D=3D1). If this=0Ais still the case, the new code would see =
your config as a weeklong=0Asession with identical start/end times - which =
would mean nothing is=0AEVER out of session. Hopefully, something has been =
changed upstream and=0Aa "daily" session differs from a "weeklong" session.=
=0A=0A- Brian Erst=0AThynk Software, Inc.=0A=0A=0A----- Original Message --=
--=0AFrom: Oleg Pecker <ol...@st...>=0ATo: quickfix-developers=
@lists.sourceforge.net=0ASent: Tuesday, December 26, 2006 11:13:53 AM=0ASub=
ject: [Quickfix-developers] Disconnect at 00:00:00 GMT problem=0A=0AQuickFI=
X Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html=
=0AQuickFIX Support: http://www.quickfixengine.org/services.html=0A=0A=0A=
=0A=0A=0A =0A=0A=0A =0A=0A=0A<!--=0A=0A /* Style Definitions */=0A p.MsoNor=
mal, li.MsoNormal, div.MsoNormal=0A=09{margin:0in;=0Amargin-bottom:.0001pt;=
=0Afont-size:12.0pt;=0Afont-family:"Times New Roman";}=0Ah1=0A=09{margin-to=
p:12.0pt;=0Amargin-right:0in;=0Amargin-bottom:3.0pt;=0Amargin-left:0in;=0A=
=0Afont-size:16.0pt;=0Afont-family:Arial;}=0Ah3=0A=09{margin-top:12.0pt;=0A=
margin-right:0in;=0Amargin-bottom:3.0pt;=0Amargin-left:0in;=0A=0Afont-size:=
13.0pt;=0Afont-family:Arial;}=0Aa:link, span.MsoHyperlink=0A=09{color:blue;=
=0Atext-decoration:underline;}=0Aa:visited, span.MsoHyperlinkFollowed=0A=09=
{color:purple;=0Atext-decoration:underline;}=0Aspan.EmailStyle17=0A=09{font=
-family:"Times New Roman";=0Acolor:windowtext;=0Afont-weight:normal;=0Afont=
-style:normal;=0Atext-decoration:none none;}=0Ap.NormalWeb1, li.NormalWeb1,=
div.NormalWeb1=0A=09{margin-top:7.5pt;=0Amargin-right:0in;=0Amargin-left:2=
2.5pt;=0Afont-size:12.0pt;=0Afont-family:"Times New Roman";}=0A _filtered {=
=0Amargin:1.0in 1.25in 1.0in 1.25in;}=0Adiv.Section1=0A=09{}=0A-->=0A=0A=0A=
=0A=0A=0A=0AHi,=0A=0A=0A =0A=0A=0AI have a problem with disconnect. =0A=0A=
=0AI=A2ve implemented a FIX client using=0Aquickfix v 1.12.4 which is actua=
lly defined as "initiator".=0A=0A=0A =0A=0A=0AHere is my configuration file=
:=0A=0AStartTime=3D22:30:00 (IST =3D GMT + 22:30) =0A=0AEndTime=3D22:30:=
00 (IST: GMT + 22:30) =0A=0A=0ASendResetSeqNumFlag=3DY=0A=0A=0AResetOnLog=
out=3DY=0A=0A=0AResetOnDisconnect=3DY=0A=0A=0AReconnectInterval=3D20=0A=0A=
=0AHeartBtInt=3D20=0A=0A=0A =0A=0AThe problem is that my client (the initia=
tor) disconnects exactly at 00:00:00 GMT and does not reconnect. =0A=0A=0AD=
oes any one know what could be the problem? =0A=0A=0A =0A=0A=0AThanks,=0A=
=0A=0AOleg =0A=0A=0A =0A=0A=0A=0A=0A=0A------------------------------------=
-------------------------------------=0ATake Surveys. Earn Cash. Influence =
the Future of IT=0AJoin SourceForge.net's Techsay panel and you'll get the =
chance to share your=0Aopinions on IT & business topics through brief surve=
ys - and earn cash=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=
=3Dsourceforge&CID=3DDEVDEV=0A_____________________________________________=
__=0AQuickfix-developers mailing lis...@li...=
ge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/quickfix-developers=
=0A=0A=0A=0A |