Re: [Quickfix-developers] Intermittent disconnects on Solaris
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2005-03-21 19:22:48
|
Yeah, I agree. --oren ----- Original Message ----- From: "Caleb Epstein" <cal...@gm...> To: <kri...@rb...> Cc: <qui...@li...>; <Bar...@gs...> Sent: Monday, March 21, 2005 1:20 PM Subject: Re: [Quickfix-developers] Intermittent disconnects on Solaris > 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 > > On Mon, 21 Mar 2005 19:02:19 -0000, kri...@rb... > <kri...@rb...> wrote: > >> I have isolated the cause of the intermittent disconnects caused by >> QuickFIX on Solaris. The problem was due to the use of the I_NREAD ioctl >> to determine whether a readable socket was EOF or not. >> >> In certain circumstances which seem to involve high network traffic and >> low machine load, I_NREAD will return zero for a readable socket that >> actually has data. In such cases, QuickFIX would erroneously close the >> socket. >> >> I replaced the I_NREAD code in socket_disconnected() one byte recv() with >> the MSG_PEEK flag. This appears to have resolved this rather troublesome >> issue for us in production. >> > > Shouldn't QuickFIX just rely on recv returning 0 to detect a socket > disconnect, instead of relying on this ioctl? I've never seen a > socket-based application using this technique to detect disconnects > before. Clearly its not 100% reliable. > > -- > Caleb Epstein > caleb dot epstein at gmail dot com > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |