<div dir="ltr">Can you post your (possibly lightly sanitized) messages log? Also, note that admin-type messages (logon, heartbeat, test request) are skipped during a resend. </div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">--</font></div><font face="arial, helvetica, sans-serif">Mike Gatny<br>Connamara Systems, LLC</font></div></div></div>
<br><div class="gmail_quote">On Thu, Sep 17, 2015 at 1:31 PM, Ian Clements <span dir="ltr"><<a href="mailto:ian.clements@investmentsoftwareltd.com" target="_blank">ian.clements@investmentsoftwareltd.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Further to the issue of the connection being forcibly closed I have found we are now missing a significant number of messages when
 we manage to reconnect as it seems we get sequence resets that skip over messages even though we request them which is really messes things up.  I have included our QuickFix engine log if anyone can shed some light on what has gone wrong it would be greatly
 appreciated.  The messages we lost were sent during the session disconnect I have included some missing sequence numbers below but we are missing over 100 in total.  Probably my ignorance of FIX but I had assumed we should have recovered these messages when
 we reconnected and it looks like it is attempting to do that.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<table border="0" cellspacing="0" cellpadding="0" width="60" style="width:45.0pt;border-collapse:collapse">
<tbody>
<tr style="height:15.0pt">
<td width="60" nowrap valign="bottom" style="width:45.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">20078<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="60" nowrap valign="bottom" style="width:45.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">22080<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="60" nowrap valign="bottom" style="width:45.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">23074<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="60" nowrap valign="bottom" style="width:45.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">24079<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="60" nowrap valign="bottom" style="width:45.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">26088<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="60" nowrap valign="bottom" style="width:45.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">27065<u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p>20150917-14:20:48.575 : Created session<u></u><u></u></p>
<p>20150917-14:20:48.584 : Connecting to xxx.xxx.xxx.xx on port xxxxx<u></u><u></u></p>
<p>20150917-14:20:50.268 : Connection succeeded<u></u><u></u></p>
<p>20150917-14:20:50.294 : Initiated logon request<u></u><u></u></p>
<p>20150917-14:20:50.429 : Received logon<u></u><u></u></p>
<p>20150917-14:27:32.281 : Session FIX.4.2:xxxxxxxxxxxxxxxxxxxxxxxxxxx disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host<u></u><u></u></p><span class="">
<p>   at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32 timeoutMilliseconds)<u></u><u></u></p>
<p>   at QuickFix.SocketInitiatorThread.Read()<u></u><u></u></p>
</span><p>20150917-14:27:49.004 : Connecting to xxx.xxx.xxx.xx on port xxxxx<u></u><u></u></p>
<p>20150917-14:27:50.597 : Connection succeeded<u></u><u></u></p>
<p>20150917-14:27:50.598 : Initiated logon request<u></u><u></u></p>
<p>20150917-14:27:50.671 : Received logon<u></u><u></u></p>
<p>20150917-14:27:50.671 : MsgSeqNum too high, expecting 19768 but received 20464<u></u><u></u></p>
<p>20150917-14:27:50.673 : Sent ResendRequest FROM: 19768 TO: 0<u></u><u></u></p>
<p>20150917-14:27:50.680 : Got resend request from 2846 to 0<u></u><u></u></p>
<p>20150917-14:27:50.683 : Sent SequenceReset TO: 2849<u></u><u></u></p>
<p>20150917-14:27:50.749 : ResendRequest for messages FROM: 19768 TO: 0 has been satisfied.<u></u><u></u></p>
<p>20150917-14:27:50.750 : Received SequenceReset FROM: 19768 TO: 20466<u></u><u></u></p>
<p>20150917-14:28:13.200 : Session FIX.4.2:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host<u></u><u></u></p><span class="">
<p>   at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32 timeoutMilliseconds)<u></u><u></u></p>
<p>   at QuickFix.SocketInitiatorThread.Read()<u></u><u></u></p>
</span><p>20150917-14:28:49.073 : Connecting to xxx.xxx.xxx.xx on port xxxxx<u></u><u></u></p>
<p>20150917-14:28:51.039 : Connection succeeded<u></u><u></u></p>
<p>20150917-14:28:51.039 : Initiated logon request<u></u><u></u></p>
<p>20150917-14:28:51.157 : Received logon<u></u><u></u></p>
<p>20150917-14:28:51.157 : MsgSeqNum too high, expecting 21452 but received 22099<u></u><u></u></p>
<p>20150917-14:28:51.157 : Sent ResendRequest FROM: 21452 TO: 0<u></u><u></u></p>
<p>20150917-14:28:51.161 : MsgSeqNum too high, expecting 21452 but received 22100<u></u><u></u></p>
<p>20150917-14:28:51.161 : Already sent ResendRequest FROM: 21452 TO: 0.  Not sending another.<u></u><u></u></p>
<p>20150917-14:28:51.279 : ResendRequest for messages FROM: 21452 TO: 0 has been satisfied.<u></u><u></u></p>
<p>20150917-14:28:51.279 : Received SequenceReset FROM: 21452 TO: 22101<u></u><u></u></p>
<p>20150917-14:29:17.136 : Session FIX.4.2:xxxxxxxxxxxxxxxxxxxxxxxxxxxx disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host<u></u><u></u></p><span class="">
<p>   at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32 timeoutMilliseconds)<u></u><u></u></p>
<p>   at QuickFix.SocketInitiatorThread.Read()<u></u><u></u></p>
</span><p>20150917-14:29:49.139 : Connecting to xxx.xxx.xxx.xx on port xxxxx<u></u><u></u></p>
<p>20150917-14:29:50.465 : Connection succeeded<u></u><u></u></p>
<p>20150917-14:29:50.465 : Initiated logon request<u></u><u></u></p>
<p>20150917-14:29:50.543 : Received logon<u></u><u></u></p>
<p>20150917-14:29:50.543 : MsgSeqNum too high, expecting 23055 but received 24855<u></u><u></u></p>
<p>20150917-14:29:50.543 : Sent ResendRequest FROM: 23055 TO: 0<u></u><u></u></p>
<p>20150917-14:29:50.551 : MsgSeqNum too high, expecting 23055 but received 24856<u></u><u></u></p>
<p>20150917-14:29:50.551 : Already sent ResendRequest FROM: 23055 TO: 0.  Not sending another.<u></u><u></u></p>
<p>20150917-14:29:50.617 : ResendRequest for messages FROM: 23055 TO: 0 has been satisfied.<u></u><u></u></p>
<p>20150917-14:29:50.617 : Received SequenceReset FROM: 23055 TO: 24857<u></u><u></u></p>
<p>20150917-14:30:15.978 : Session FIX.4.2:xxxxxxxxxxxxxxxxxxxxxxxxxxx disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host<u></u><u></u></p><span class="">
<p>   at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32 timeoutMilliseconds)<u></u><u></u></p>
<p>   at QuickFix.SocketInitiatorThread.Read()<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
</span><div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Quickfixn [mailto:<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>Ian Clements<br>
<b>Sent:</b> 17 September 2015 16:03</span></p><div><div class="h5"><br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Existing Connection Forcibly Closed<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Running on my local development machine behind a firewall which connects via fibre to our DNS server which is off site in a data centre
 then out via another firewall (I think).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Could it be a firewalls killing it thinking it’s hostile traffic?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Quickfixn [<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">mailto:quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>Christopher Karpyszyn<br>
<b>Sent:</b> 17 September 2015 15:59<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Existing Connection Forcibly Closed<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.5pt;font-family:"Lucida Sans",sans-serif;color:#3b3838">It could be a network issue. What kind of environment is the application running from?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.5pt;font-family:"Lucida Sans",sans-serif;color:#3b3838"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.5pt;font-family:"Lucida Sans",sans-serif;color:#3b3838">Chris<u></u><u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Quickfixn [<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">mailto:quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>Ian Clements<br>
<b>Sent:</b> Thursday, September 17, 2015 10:49 AM<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Existing Connection Forcibly Closed<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks Grant.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">That’s kind of what I figured but they didn’t seem so impressed when I implied it might be them - they said we were connecting to the
 best hardware which loads of people were connecting to and it was our fault!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Quickfixn [<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">mailto:quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>Grant Birchmeier<br>
<b>Sent:</b> 17 September 2015 15:44<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Existing Connection Forcibly Closed<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">"An existing connection was forcibly closed<b> <u>by the remote host</u></b>"<br>
<br>
Basically, Bloomberg hung up on you.<br>
<br>
The only way to find out why is to ask them.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:black">​I mean, check your logs first to see if something looks weird, but otherwise reach out to Bloomberg's support.​<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Sep 17, 2015 at 9:34 AM, Ian Clements <<a href="mailto:ian.clements@investmentsoftwareltd.com" target="_blank">ian.clements@investmentsoftwareltd.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have an established connection to a Bloomberg FIX acceptor over SSL.  The problem is when I am doing fills for a large quantity of orders (1000 in this case with 10 fills per
 order) I am getting the following exception…<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host<u></u><u></u></p>
<p class="MsoNormal">   at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32 timeoutMilliseconds)<u></u><u></u></p>
<p class="MsoNormal">   at QuickFix.SocketInitiatorThread.Read()<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">QuickFix/N reconnects and resumes filling and after a few of these exceptions and reconnects all orders end up filled.  I was wondering what is causing this exception and how do
 I prevent it.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Any help would be really appreciated.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Many thanks,<u></u><u></u></p>
<p class="MsoNormal">Ian.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;background:white">Grant Birchmeier</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#3333ff;background:#ffcc00">Connamara Systems, LLC</span></b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt">Made-To-Measure Trading Solutions.</span></b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Exactly what you need. No more. No less.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><a href="http://connamara.com" target="_blank">http://connamara.com</a></span><u></u><u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br></div>