<div dir="ltr"><div>I am developing a project in .NET to connect to ICE and i am using the QuickFIX engine version 1.9 and have a problem with the security definitions subscriptions.</div><div><br></div><div>I am subscribing to the security definitions and am receiving the responses (35=d) and in the onMessage method, i straight away processing the responses and writing them to the database directly. The problem is every 2 minutes my sessions logs out with the below error message. The connection forcibly closes by ICE.</div><div><br></div><div>I have contacted them and were saying to increase the heap size which i was not convinced and need help to understand what is the correct way of handling this in .NET since i know the market reference data is huge.</div><div><br></div><div>Appreciate your response.</div><div><br></div><div>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<br>   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)<br>   --- End of inner exception stack trace ---<br>   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)<br>   at QuickFix.SocketInitiatorThread.Send(String data)<br>   at QuickFix.Session.Send(String message)<br>   at QuickFix.Session.SendRaw(Message message, Int32 seqNum)<br>   at QuickFix.Session.Next()<br>   at QuickFix.Session.Next(MessageBuilder msgBuilder)<br>   at QuickFix.SocketInitiatorThread.ProcessStream()<br>   at QuickFix.SocketInitiatorThread.Read()</div><div><br></div><div>Thanks,</div></div>