asterisk/channels
Jonathan Rose ceebdfce40 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
2015-12-10 14:13:19 -06:00
..
dahdi Modules: Make ast_module_info->self available to auxiliary sources. 2015-05-04 20:47:01 -04:00
iax2 git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
misdn Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
pjsip channels/pjsip/dialplan_functions: Add an option for extracting the SIP call-id 2015-09-05 15:25:44 -05:00
sip Audit improper usage of scheduler exposed by 5c713fdf18. 2015-12-01 13:54:04 -06:00
Makefile Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
chan_alsa.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_bridge_media.c AST_MODULE_INFO: Format corrections to the usages of AST_MODULE_INFO macro. 2015-05-13 16:34:23 -05:00
chan_console.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_dahdi.c build: GCC 5.1.x catches some new const, array bounds and missing paren issues 2015-10-24 16:08:54 -05:00
chan_dahdi.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
chan_iax2.c Audit improper usage of scheduler exposed by 5c713fdf18. 2015-12-01 13:54:04 -06:00
chan_mgcp.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_misdn.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
chan_motif.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_nbs.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_oss.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_phone.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_pjsip.c chan_pjsip: Handle T.38 faxes with direct media bridges 2015-11-22 22:37:29 -06:00
chan_rtp.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
chan_sip.c chan_sip: Add TCP/TLS keepalive to TCP/TLS server 2015-12-10 14:13:19 -06:00
chan_skinny.c Audit improper usage of scheduler exposed by 5c713fdf18. (v13 additions) 2015-12-01 13:54:04 -06:00
chan_unistim.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_vpb.cc ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
console_board.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
console_gui.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
misdn_config.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
sig_analog.c Logger: Convert 'struct ast_callid' to unsigned int. 2015-03-13 01:12:35 +00:00
sig_analog.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
sig_pri.c build: GCC 5.1.x catches some new const, array bounds and missing paren issues 2015-10-24 16:08:54 -05:00
sig_pri.h sig_pri.h: force_restart_unavailable_chans in wrong scope 2015-07-17 11:02:24 -05:00
sig_ss7.c Logger: Convert 'struct ast_callid' to unsigned int. 2015-03-13 01:12:35 +00:00
sig_ss7.h chan_dahdi: Adds support for major update to libss7. 2014-06-16 18:27:51 +00:00
vcodecs.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 10:23:32 +00:00
vgrabbers.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00