]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_transport_management: Kill idle TCP connections. 10/2610/3
authorMark Michelson <mmichelson@digium.com>
Tue, 8 Mar 2016 18:12:16 +0000 (12:12 -0600)
committerJoshua Colp <jcolp@digium.com>
Thu, 14 Apr 2016 18:01:51 +0000 (13:01 -0500)
commit9f8b803a290fa220c3ea6483324b5be9ada49f74
treea2734492f440b07b79266cfcc3afb478436665ef
parent3a845d27fd9525efb94b2b8132f93b228a996969
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