freeswitch/libs/sofia-sip/libsofia-sip-ua/tport
Travis Cross a0e9639a1f Handle Linux TCP keepalives better in Sofia
Sofia accepts a value for the TCP keepalive timeout interval via
TPTAG_KEEPALIVE, however it fails to use this value for the Linux
keepalive socket options TCP_KEEPIDLE and TCP_KEEPINTVL.  In fact, on
Linux it enables the sending of TCP keepalives even if tpp_keepalive
is set to zero which would disable Sofia's internal keepalive
mechanisms.  Sofia then uses a hard coded value of 30 seconds for
these keepalive intervals which affects battery life on mobile
devices.

With this commit we harmonize the sending of TCP keepalives on Linux
with other platforms by using the value from TPTAG_KEEPALIVE and not
enabling the sending of TCP keepalives at all if the value of the
parameter is zero.

FS-6104 --resolve
2014-01-18 15:46:56 +00:00
..
sofia-sip
ChangeLog
Doxyfile.in
Makefile.am add websocket transport to sofia 2013-03-31 21:27:20 -05:00
agent.pem
cafile.pem
certificates-update
certificates.html
make_node_cert.pl
make_root_cert.pl
make_test_certs.sh
test_tport.c
tls_test_client.c
tls_test_server.c
tport.c FS-5911 --resolve 2013-10-25 23:51:43 +05:00
tport.docs
tport_internal.h add websocket transport to sofia 2013-03-31 21:27:20 -05:00
tport_logging.c add websocket transport to sofia 2013-03-31 21:27:20 -05:00
tport_rand.c
tport_sigcomp.c
tport_stub_sigcomp.c
tport_stub_stun.c
tport_tag.c
tport_threadpool.c
tport_tls.c working mo better 2013-03-31 21:27:20 -05:00
tport_tls.h working mo better 2013-03-31 21:27:20 -05:00
tport_tls_test.sh
tport_type_connect.c modify sofia debug code to print file, line numbers and function name 2012-10-26 14:15:14 -05:00
tport_type_sctp.c
tport_type_stun.c
tport_type_tcp.c Handle Linux TCP keepalives better in Sofia 2014-01-18 15:46:56 +00:00
tport_type_tls.c support tls dir options properly 2013-03-31 21:27:26 -05:00
tport_type_udp.c
tport_type_ws.c override the default 30 minute timeout on tport connections for websockets 2013-09-04 04:24:53 +05:00
tport_ws.h tweak sip ws code to avoid double free 2013-06-26 12:43:54 -04:00
ws.c FS-5642 --resolve add back the ETIMEDOUT check, needed on Mac 2013-12-13 11:46:14 +08:00
ws.h windows fix compiler errors 2013-10-22 23:23:48 -05:00