ejabberd - Comments for "http-bind/BOSH very slow" https://www.ejabberd.im/node/5068 en I've looked when and why was https://www.ejabberd.im/node/5068#comment-58060 <p>I've looked when and why was that code included. It was included due to this ticket:<br /> <noindex><a href="https://support.process-one.net/browse/EJAB-1257" title="https://support.process-one.net/browse/EJAB-1257" rel="nofollow" >https://support.process-one.net/browse/EJAB-1257</a></noindex></p> Mon, 21 Nov 2011 19:37:04 +0000 mfoss comment 58060 at https://www.ejabberd.im I made some research and the https://www.ejabberd.im/node/5068#comment-58051 <p>I made some research and the problem seems to be the following line in web/ejabberd_http_bind.erl.</p> <div class="codeblock"><code>-define(PROCESS_DELAY_DEFAULT, 10).</code></div> <p>respectively this code block :</p> <div class="codeblock"><code>&nbsp;&nbsp;&nbsp; Pdelay = case string:to_integer(xml:get_attr_s(&quot;process-delay&quot;,Attrs)) of<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {error, _} -&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?PROCESS_DELAY_DEFAULT;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {CPdelay, _} when<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (?PROCESS_DELAY_MIN =&lt; CPdelay) and<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (CPdelay =&lt; ?PROCESS_DELAY_MAX) -&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPdelay;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {CPdelay, _} -&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lists:max([lists:min([CPdelay, ?PROCESS_DELAY_MAX]), ?PROCESS_DELAY_MIN])<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end,</code></div> <p>As I'm not an erlang programmer. Is this code block correct? is it bad to set PROCESS_DELAY_DEFAULT to 0?</p> Fri, 18 Nov 2011 15:50:07 +0000 Tomcat comment 58051 at https://www.ejabberd.im