{{Quickfixn}} Exception in a QF/n thread causing the whole application to crash?
Grant Birchmeier
gbirchmeier at connamara.com
Mon Mar 3 08:39:12 PST 2014
At a glance, there might be a tricky engine error here, where your
connection is dropping at just the right time.
It might that we're missing a try/catch somewhere. Any catch would need to
ensure the engine is left in a valid state. It would take some
investigation. (Unfortunately, I'm not able to devote time to that right
now.)
On Mon, Mar 3, 2014 at 10:31 AM, Joseph Lam <joseph.lam at orbis.com> wrote:
> Hi
>
>
>
> I just had my application using QuickFIX/n crashed with below exception:
>
>
>
> 20140303-15:15:02.073 : Session FIX.4.2:ORBIS->BKORBIS disconnecting:
> System.IO.IOException: Unable to write data to the transport connection: An
> existing connection was forcibly closed by the remote host. --->
> System.Net.Sockets.SocketException: An existing connection was forcibly
> closed by the remote host
>
> at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32
> size, SocketFlags socketFlags)
>
> at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset,
> Int32 size)
>
> --- End of inner exception stack trace ---
>
> at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset,
> Int32 size)
>
> at QuickFix.SocketInitiatorThread.Send(String data)
>
> at QuickFix.Session.Send(String message)
>
> at QuickFix.Session.SendRaw(Message message, Int32 seqNum)
>
> at QuickFix.Session.GenerateTestRequest(String id)
>
> at QuickFix.Session.Next()
>
> at QuickFix.SocketInitiatorThread.Read()
>
>
>
> It looks like it's the SocketInitiatorThraed automatically triggering a
> TestRequest itself during a time when the FIX connection was being brought
> up and down (by our own codes in a retry loop, due to the target comp
> rejecting our logon). And the exception in the thread seemed to have
> bubbled up to crash the whole application (a Windows service).
>
>
>
> Is there any way I can prevent an exception in the QuickFix thread
> crashing the whole application?
>
>
>
> Thanks.
>
>
>
> Regards,
>
> Joseph
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140303/d3c5c74c/attachment-0002.htm>
More information about the Quickfixn
mailing list