FYI, I&#39;ve changed the configuration to:<br><br>tcp_children=8<br>tcp_send_timeout=3<br>tcp_connect_timeout=5<br><br>and it looks we get less often the problem described here ( tcp_connect/send time out error).<br><br>I confirm that the problem was triggered by the fact that our client is using TCP only and that the tcp connections were unavailable after some presence test (many NOTIFY messages sent to TCP).<br>

<br>I&#39;m curious to know how many children do you use in a typical configuration ? 4, 8, more? Of course it depends on the traffic expected but let me know that this is parameter you always increase in a production environment.<br>

<br>Regards,<br>Pascal<br><br><br><div class="gmail_quote">2009/5/27 Pascal Maugeri <span dir="ltr">&lt;<a href="mailto:pascal.maugeri@gmail.com">pascal.maugeri@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><br>
</div></div>To my best knowledge, TCP support in Kamailio is blocking. This has<br>
been addressed for sip-router (tcp_async=yes). Anyway, there are still<br>
some issues for tls.</blockquote></div><div><br>This is a good argument to switch to sip-router :-)<br> <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<br>
How many simultaneous TCP connections are you handling? You could try<br>
to limit the max number of connections and check the impact on the CPU<br>
consumption.</blockquote></div><div><br>Theoretically we&#39;re using few simultaneous client connections (&lt;10).  <br>My first intention is to increase tcp_children and to decrease tcp_send_timeout and tcp_connect_timeout.<br>



Do you believe it is a good idea ?<br><br>Cheers<br>Pascal<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Cheers,<br>
--<br>
<font color="#888888">Victor Pascual Ávila<br>
</font></blockquote></div><br>
</blockquote></div><br>