<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hey Grant,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I don't think I am doing much in OnMessage.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The problem is a well known contention issue because Windows uses a nagle alogrithm. TcpAckFrequency used to be able to be set to 1 to disable it on older versions of operating system. BUT appears to have no effect on
 Server 2008 R2.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I would really like to hear from any Server 2008 R2 user, to find out how they circumnavigated the problem.<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Quickfixn <quickfixn-bounces@lists.quickfixn.com> on behalf of Grant Birchmeier <gbirchmeier@connamara.com><br>
<b>Sent:</b> 27 March 2018 21:53<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Subject:</b> Re: {{Quickfixn}} TCP Settings/ Windows 2008 R2</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-size:small; color:#000000">Is it possible that you are spending too much time processing incoming messages on the QF thread?</div>
<div class="x_gmail_default" style="font-size:small; color:#000000"><br>
</div>
<div class="x_gmail_default" style="font-size:small; color:#000000">Anything inside the OnMessage callback is happening on the QF thread.  The engine will not proceed to the next message until OnMessage returns.  If you have too much processing inside of OnMessage,
 you could see the situation you are describing.</div>
<div class="x_gmail_default" style="font-size:small; color:#000000"><br>
</div>
<div class="x_gmail_default" style="font-size:small; color:#000000">One strategy is to have OnMessage do little more than push the message onto a storage queue, where another thread can read it and process it safely.</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Mar 27, 2018 at 8:12 AM, Gabe Barwick <span dir="ltr">
<<a href="mailto:barwickhome@hotmail.com" target="_blank" id="LPlnk412033" previewremoved="true">barwickhome@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_8399617537416854821divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<div class="x_m_8399617537416854821postcell x_m_8399617537416854821post-layout--right">
<div class="x_m_8399617537416854821post-text">
<p>I am receiving data via QuickFix/.net engine.</p>
<p><br>
</p>
<p>I am on a Windows 2008 R2 server, and I see intermittant delayed acking of incoming FIX messages. The delay causes the MarketData provider to hold sending further FIX messages, and hence latency is introduced into the prices.</p>
<p><br>
</p>
<p>Often the delay is around 200ms.</p>
<p><br>
</p>
</div>
</div>
<div>After websearch, I have tried setting TcpAckFrequency to 1 and TCPNoDelay to 1.<br>
<br>
<p>Neither has any affect. Does anyone know how to disable this "feature" on server 2008?</p>
</div>
<br>
<p></p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" id="LPlnk826213" previewremoved="true">Quickfixn@lists.quickfixn.com</a><br>
<a href="https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.quickfixn.com%2Flistinfo.cgi%2Fquickfixn-quickfixn.com&data=02%7C01%7C%7C1580ce60947d45931bb208d5942d3e4d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636577844430142382&sdata=cU%2B4a0H4RF%2F7GkvokOxoJ4JgG236itCP4NR%2BGO8PBVw%3D&reserved=0" originalsrc="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" shash="kDfYMpnMcstWNTaEbsXSdUN8H40I+t8UhlgAohVQAHN+9SPOB7q4laFYwKtcBp2rz5sCvRIgdptOosz7+N36Xizc65ZDFdLfLiRfRmt1y+xm+5gbUyg498yUQWZv5KRxrylw/1YjPBdHqmyUCwvmytFM+a3rE/he9HOl3Vvl7j4=" rel="noreferrer" target="_blank" id="LPlnk149965" previewremoved="true">http://lists.quickfixn.com/<wbr>listinfo.cgi/quickfixn-<wbr>quickfixn.com</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">
<div><font size="2"><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br>
</font></font></div>
<div><font size="2"><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems,
 LLC</span></span></span></span></span></font></b></font><br>
</div>
<div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div>
<div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br>
</font></b></font></div>
<div><font size="2"><a href="https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconnamara.com&data=02%7C01%7C%7C1580ce60947d45931bb208d5942d3e4d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636577844430142382&sdata=RQjIev2t383XxrQmSLw8zIxlWAC7pTN0zb8fAT%2F%2B5XU%3D&reserved=0" originalsrc="http://connamara.com" shash="n3K9tieQ2vRmTFbfBQ+ollNc65ZPB1rvAhRL9u/FNM5eKI8CcrY0b0lpY5A5LxwDywRfD0qr+aN/px71kLsqAeh4QPgaFEd2hZ6qCVXNhvyNiE0SgnR4fjR9SaQA/cG1UUNezePfo5Z/p+dvuzModJNjOwgkeDZUNzBkovAcrhE=" target="_blank" id="LPlnk579731" previewremoved="true">http://connamara.com</a><br>
</font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>