FYI, I've changed the configuration to:
tcp_children=8
tcp_send_timeout=3
tcp_connect_timeout=5
and it looks we get less often the problem described here ( tcp_connect/send
time out error).
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).
I'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.
Regards,
Pascal
2009/5/27 Pascal Maugeri <pascal.maugeri(a)gmail.com>
To my best knowledge, TCP support in Kamailio is
blocking. This has
been addressed for sip-router (tcp_async=yes). Anyway, there are still
some issues for tls.
This is a good argument to switch to sip-router :-)
How many simultaneous TCP connections are you handling? You could try
to limit the max number of connections and check the impact on the CPU
consumption.
Theoretically we're using few simultaneous client connections (<10).
My first intention is to increase tcp_children and to decrease
tcp_send_timeout and tcp_connect_timeout.
Do you believe it is a good idea ?
Cheers
Pascal
Cheers,
--
Victor Pascual Ávila