Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Frequently TCP/TLS sessions remain in CLOSE_WAIT #1881
On our setup with Kamailio 5.2.1 with users connected via TLS. i see frequently TCP/TLS sessions remain in CLOSE_WAIT:
netstat -ntp |grep CLOSE
In tcpdump i see, that the client send a TCP FIN,ACK and and the OS which is hosting the Kamailio send TCP ACK. But Kamailio is not closing. So the session remain in CLOSE_WAIT for a long time (over a hour)
We also have configured:
Which should finally close after 65 second. But no effect.
Register SIP clients via TLS, and then let the client close the TCP session ia TCP FIN,ACK
Debian GNU/Linux 9
I have see similar behavior on CentOS with default network initialization subsystem.
Could you reconfigure network using
Hey sergey, i could try this too. But as far as I understand it. CLOSE_WAIT is a issue by the application, not finally closing the session.
As described by Crist Clark
Try by setting this core parameter:
Tune the tcp keepalive parameters to shorten the lifetime duration of these sockets -- there are couple of them, see:
Also, you can tune at OS level with sysctl. The OS value can be seen in the file: