[SR-Users] tcp_set_connection_lifetime - does not close the connection immediately

Andy agrawal.ananda at gmail.com
Fri Nov 18 15:32:47 CET 2016


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-close-the-connection-immediately-tp153434p153451.html
Sent from the Users mailing list archive at Nabble.com.



More information about the sr-users mailing list