]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_transport_management: Kill idle TCP connections. 99/2599/2
authorMark Michelson <mmichelson@digium.com>
Tue, 8 Mar 2016 18:12:16 +0000 (12:12 -0600)
committerMark Michelson <mmichelson@digium.com>
Thu, 14 Apr 2016 16:58:04 +0000 (11:58 -0500)
commit7fb3724a777a6a0c3c56c90c63a9a3953af96283
treec1002280db7e6a64965a59f113d1302d19754e12
parent707fd4dcd0514c6b8576a18e03a8f0dd317d9915
res_pjsip_transport_management: Kill idle TCP connections.

"Idle" here means that someone connects to us and does not send a SIP
request. PJProject will not automatically time out such connections, so
it's up to Asterisk to do it instead.

When we receive an incoming TCP connection, we will start a timer
(equivalent to transaction timer D) waiting to receive an incoming
request. If we do not receive a request in that timeframe, then we will
shut down the TCP connection.

ASTERISK-25796 #close
Reported by George Joseph

AST-2016-005

Change-Id: I7b0d303e5d140d0ccaf2f7af562071e3d1130ac6
res/res_pjsip_transport_management.c