<div dir="ltr"><div class="gmail_default"><font color="#000000">I think you want th</font>e config setting "MaxMessagesInResendRequest".</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 9:22 AM, Phillip Wei <span dir="ltr"><<a href="mailto:pwei@bluemountaincapital.com" target="_blank">pwei@bluemountaincapital.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-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I think you’ll need to dig into the source to achieve this.<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">If you look inside the source, you’ll find Session.cs. This is the class that handles most of the internal messaging logic (including admin messages). If
you drill further down, you’ll see that all messages are finally transmited through the internal responder_, which is of type IResponder and set by the public method SetResponder.
<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">I assume you are using the SocketInitator? If so, you’ll see that the initator creates SocketInitiatorThreads. SocketInitiatorThread implements this interface,
and passes itself in for this call. The SocketInitator’s Send(string data) call simply does a socket send. If you’d like to rate limit, you could create a buffer here that it writes to, and issue the actual send request in a seperate task/thread.<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">You will then also need to have a SocketInitator that generates the request thorttling threads.<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">Phil<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 style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a> [mailto:<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>ligu<br>
<b>Sent:</b> Wednesday, November 27, 2013 10:04 AM<br>
<b>To:</b> <a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a><br>
<b>Subject:</b> {{Quickfixn}} msg throttling<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p>Hi All,<u></u><u></u></p>
<p><br>
is there any way to handle message throttling?<u></u><u></u></p>
<p><br>
Our market connectivity provider, who is on the acceptor side, applies throttling on incoming<u></u><u></u></p>
<p>msg number (max 50/sec). After reaching the limit, they ignore over-limit messages and terminate the session.<u></u><u></u></p>
<p><br>
With application level msgs, this can be handled from the application which uses quickfixn as initiator.<u></u><u></u></p>
<p>We experience problems with admin level msgs.<u></u><u></u></p>
<p><br>
For example, after a network problem, after reconnecting the session, acceptor side asks to resend messages.<u></u><u></u></p>
<p>Engine automatically responds with resending the asked messages, which can easily overthrow the trottling limit,<u></u><u></u></p>
<p>if there are lot of messages to resend.<u></u><u></u></p>
<p><br>
I guess there isn't throttle handling in qfn, but I haven't checked the code yet.<u></u><u></u></p>
<p>Any ideas, suggestions, how to solve this?<u></u><u></u></p>
<p><br>
Thanks,<u></u><u></u></p>
<p> Ligu<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</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" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br>
</font></font></div><div><font><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><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
</font></div>
</div>