Re: [Quickfix-developers] FileLog.cpp question (sorta)
Brought to you by:
orenmnero
From: <OM...@th...> - 2003-05-15 05:31:15
|
>> I was looking through FileStore.cpp and it seems that there's a problem = where the constructor is checking to see if the outgoing and event streams = have been successfully opened. The code actually checks to >> see if the=20 m=5Fincoming stream was successfully opened instead of the outgoing or even= t=20 log streams.=20 Yup. Checked in a fix, here it is:=20 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/quickfix/quickfix/src/C%2b%2= b/FileLog.cpp.diff?r1=3D1.2&r2=3D1.3 >> A very minor issue, but the reason I was looking at the code was=20 because I use tail with the ?f option on Solaris to see what's going on=20 while debugging or for certification with other parties and the output=20 seems >> to be delayed longer than the 10 seconds or so I think tail=20 pauses between read attempts. Maybe I'm confused, but I thought std::endl = was supposed to flush output in addition to adding end of line char(s) to=20 the >> output. Is that only on tty output maybe? I added a std::flush at the end of the stream. See if this helps:=20 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/quickfix/quickfix/src/C%2b%2= b/FileLog.h.diff?r1=3D1.2&r2=3D1.3 |