From agrawal.ananda@gmail.com Thu Nov 17 23:27:31 2016 From: Andy To: sr-users@lists.kamailio.org Subject: [SR-Users] tcp_set_connection_lifetime - does not close the connection immediately Date: Thu, 17 Nov 2016 15:27:30 -0700 Message-ID: <1479421650462-153434.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0421252706==" --===============0421252706== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I am calling tcp_set_connection_lifetime(conid, 1), which I understand is one sec after now, but I see it taking upto 60 secs to kill the connection, is there any other timer which has a larger interval which might affect this. -- View this message in context: http://sip-router.1086192.n5.nabble.com/tcp-set= -connection-lifetime-does-not-close-the-connection-immediately-tp153434.html Sent from the Users mailing list archive at Nabble.com. --===============0421252706==-- From miconda@gmail.com Fri Nov 18 10:07:27 2016 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] tcp_set_connection_lifetime - does not close the connection immediately Date: Fri, 18 Nov 2016 10:07:18 +0100 Message-ID: In-Reply-To: <1479421650462-153434.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0645383377==" --===============0645383377== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, can you run with debug=3D3 in kamailio.cfg and watch the logs (or send them here) to see if anything can be spotted there? Cheers, Daniel On 17/11/16 23:27, Andy wrote: > I am calling tcp_set_connection_lifetime(conid, 1), > which I understand is one sec after now, > > but I see it taking upto 60 secs to kill the connection, > is there any other timer which has a larger interval which might affect > this. > > > > -- > View this message in context: http://sip-router.1086192.n5.nabble.com/tcp-s= et-connection-lifetime-does-not-close-the-connection-immediately-tp153434.html > Sent from the Users mailing list archive at Nabble.com. > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users(a)lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users --=20 Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com --===============0645383377==-- From agrawal.ananda@gmail.com Fri Nov 18 15:32:49 2016 From: Andy To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] tcp_set_connection_lifetime - does not close the connection immediately Date: Fri, 18 Nov 2016 07:32:47 -0700 Message-ID: <1479479567438-153451.post@n5.nabble.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1161707055==" --===============1161707055== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Daniel, Thanks for the reply, I am trying to kill a tcp connection inside an xhttp:request event, here are some related logs, the call to "tcpops_set_connection_lifetime" seems working, but I do notice the same connection is not killed for upto 60 secs ... Nov 18 14:18:25 kamailio[25789]: ERROR: