]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Give more time for TCP/TLS threads to stop. 02/2702/4
authorJoshua Colp <jcolp@digium.com>
Tue, 26 Apr 2016 16:13:14 +0000 (13:13 -0300)
committerJoshua Colp <jcolp@digium.com>
Tue, 26 Apr 2016 16:16:36 +0000 (11:16 -0500)
commitc48015904514327d2e4f0fd74d3abdd8dc425f83
tree191b39199932532296b808953e56631b5d04efee
parent8ae69cffef03dcd4ba8a2ef56299ea3d19546a34
chan_sip: Give more time for TCP/TLS threads to stop.

The unload process currently tells each TCP/TLS to terminate but
does not wait for them to do so. This introduces a race condition
where the container holding the threads may be destroyed before
the threads are able to remove themselves from it. When they
finally do the container is invalid and can't be used causing a
crash.

A previous change existed which waited a bit to wait for any
stranglers to finish. This change extends this and waits longer.

ASTERISK-25961 #close

Change-Id: Idc6262b670ca49ede32061159e323b7b63c6f3c6
channels/chan_sip.c