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... Sent from the Users mailing list archive at Nabble.com.
Hello,
can you run with debug=3 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-set-connection-lifetime-does-not... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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: <script>: inside drop connection Nov 18 14:18:25 kamailio[25789]: DEBUG: tcpops [tcpops.c:191]: tcpops_set_connection_lifetime(): new connection lifetime for conid=5: 1215974730 Nov 18 14:18:25 kamailio[25789]: ERROR: <script>: AFTER DROP CON for 5 result == 1 Nov 18 14:18:25 kamailio[25789]: DEBUG: sl [sl.c:280]: send_reply(): reply in stateless mode (sl) Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [parser/msg_parser.c:89]: get_hdr_field(): found end of header Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [msg_translator.c:158]: check_via_address(): Nov 18 14:18:25 kamailio[25789]: DEBUG: sl [sl_funcs.c:491]: sl_run_callbacks(): execute callback for event type 1 Nov 18 14:18:25 kamailio[25789]: DEBUG: siptrace [siptrace.c:1480]: trace_sl_onreply_out(): trace off... Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [tcp_main.c:2196]: tcpconn_send_put(): send from reader (25789 (18)), reusing fd Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [tcp_main.c:2430]: tcpconn_do_send(): sending... Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [tcp_main.c:2464]: tcpconn_do_send(): after real write: c= 0x7fbe11669600 n=214 fd=8 Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [tcp_main.c:2465]: tcpconn_do_send(): buf= HTTP/1.1 200 OK^M Sia: SIP/2.0/TCP XXXXXXXXXXXXXXXXX^M Content-Type: text/html^M Server: kamailio (4.4.2 (x86_64/linux))^M Content-Length: 71^M ^M <html><body>OK - [172.31.60.115:36894] droptcpconnection </body></html> Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [parser/msg_parser.c:608]: parse_msg(): SIP Request: Nov 18 14:18:25 kamailio[25789]: DEBUG: <core> [parser/msg_parser.c:610]: parse_msg(): method: <HTTP/1.1>
-- View this message in context: http://sip-router.1086192.n5.nabble.com/tcp-set-connection-lifetime-does-not... Sent from the Users mailing list archive at Nabble.com.