[SR-Users] problem with create and release tcp connections

Bruno Bresciani bruno.bresciani at gmail.com
Thu Dec 29 17:40:50 CET 2011


Hi,

kamailio 1.5.0  has slow to treat requests after some time running with
devices over TLS. About the state of the connection, I noticed that the
gateway doesn't has keepalive to tcp connection, so, after two minutes idle
this connection is released by timeout and other are create in future
requests. Maybe this behavior constant to create and to release tcp
connections can cause the problem because when I decreases the time of
Register to gateway (100 seconds) the connection is always kept and problem
doens't happen. I think that the child responsable to manage the tcp
connection is crashing and after some time all requests that use tcp
protocol, including acess to the database postgres, freezing.
If someone has other informations to help understand this behavior, will be
great!!!!

Best Regards


2011/12/29 Daniel-Constantin Mierla <miconda at gmail.com>

>  Hello,
>
>
> On 12/28/11 2:41 PM, Bruno Bresciani wrote:
>
> Hi all,
>
> Someone know if the kamailio 1.5.0 has problem to create and release tcp
> connetctions after some time running? In my SIP network I have six IP
> telephones and one gateway registered over TLS, after some time (one day)
> this devices have problems to register and make calls. I noticed through
> the log a freezing of kamailio when it try release the tcp connections.
> Below is part of the log where I notice this behavior:
>
> *Dec 28 09:46:46 vts74 /home2/local/kamailio/sbin/kamailio[8951]:
> DBG:core:io_watch_add: io_watch_add(0x816cc80, 25, 2, 0xb61e6558), fd_no=20
> Dec 28 09:46:46 vts74 /home2/local/kamailio/sbin/kamailio[8951]:
> DBG:core:handle_tcp_child: cmd CONN_RELEASE  0xb61e6558 refcnt= 0
> Dec 28 09:47:11 vts74 /home2/local/kamailio/sbin/kamailio[8940]:
> DBG:usrloc:nodb_timer: Binding '2503','sips:2503 at 192.168.174.178;transport=tls'
> has expired
> Dec 28 09:47:26 vts74 /home2/local/kamailio/sbin/kamailio[8951]:
> DBG:core:handle_tcpconn_ev: data available on 0xb621d710 30
> Dec 28 09:47:26 vts74 /home2/local/kamailio/sbin/kamailio[8951]:
> DBG:core:io_watch_del: io_watch_del (0x816cc80, 30, -1, 0x0) fd_no=21 called
> *
>
> I know that upgrade to kamailio 3xx is recommended and I'm working to do
> it, but before, I have to understand this behavior.
>
> TLS was really experimental in 1.x, I don't think anyone here among
> developers is going to sped time troubleshooting it.
>
> General hints, attach with gdb to the pid and do a backtrace to see what
> is doing. Check with netstat the state of the connection, too.
>
> Cheers,
> Daniel
>
>
> --
> Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111229/fb12246e/attachment.htm>


More information about the sr-users mailing list