Hi,<br><br>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&#39;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&#39;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.<br>
If someone has other informations to help understand this behavior, will be great!!!!<br><br>Best Regards<br><br><br><div class="gmail_quote">2011/12/29 Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<div><div class="h5"><br>
    <br>
    On 12/28/11 2:41 PM, Bruno Bresciani wrote:
    <blockquote type="cite">Hi all,<br>
      <br>
      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:<br>
      <br>
      <b>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<br>
        Dec 28 09:46:46 vts74 /home2/local/kamailio/sbin/kamailio[8951]:
        DBG:core:handle_tcp_child: cmd CONN_RELEASE  0xb61e6558 refcnt=
        0<br>
        Dec 28 09:47:11 vts74 /home2/local/kamailio/sbin/kamailio[8940]:
        DBG:usrloc:nodb_timer: Binding &#39;2503&#39;,&#39;<a href="mailto:sips%3A2503@192.168.174.178" target="_blank">sips:2503@192.168.174.178</a>;transport=tls&#39;
        has expired<br>
        Dec 28 09:47:26 vts74 /home2/local/kamailio/sbin/kamailio[8951]:
        DBG:core:handle_tcpconn_ev: data available on 0xb621d710 30<br>
        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</b><br>
      <br>
      I know that upgrade to kamailio 3xx is recommended and I&#39;m working
      to do it, but before, I have to understand this behavior.<br>
    </blockquote></div></div>
    TLS was really experimental in 1.x, I don&#39;t think anyone here among
    developers is going to sped time troubleshooting it.<br>
    <br>
    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.<br>
    <br>
    Cheers,<br>
    Daniel<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
  </font></span></div>

</blockquote></div><br>