]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Add TCP/TLS keepalive to TCP/TLS server 99/1799/2
authorJonathan Rose <jrose@digium.com>
Thu, 10 Dec 2015 17:44:03 +0000 (11:44 -0600)
committerJonathan Rose <jrose@digium.com>
Thu, 10 Dec 2015 20:13:33 +0000 (14:13 -0600)
commite1d08a39c51d110e0aa7af2848b5d0a9947239e9
tree435eac44e78ef4c8d6d8e3858da874c9364a2172
parentfa7329b72d3e00d32252457b82544fc143e3d383
chan_sip: Add TCP/TLS keepalive to TCP/TLS server

Adds the TCP Keep Alive option to TCP and TLS server sockets. Previously
this option was only being set on session sockets.
http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/
According to the link above, the SO_KEEPALIVE option is useful for knowing
when a TCP connected endpoint has severed communication without indicating
it or has become unreachable for some reason. Without this patch, keep
alive is not set on the socket listening for incoming TCP sessions and
in Komatsu's report this resulted in the thread listening for TCP becoming
stuck in a waiting state.

ASTERISK-25364 #close
Reported by: Hiroaki Komatsu

Change-Id: I7ed7bcfa982b367dc64b4b73fbd962da49b9af36
channels/chan_sip.c