]> git.ipfire.org Git - thirdparty/asterisk.git/commit
tcptls.c: Cleanup TCP/TLS listener thread on abnormal exit.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 10 Apr 2017 22:45:35 +0000 (17:45 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 11 Apr 2017 16:13:53 +0000 (11:13 -0500)
commitbb8cd2add7ad612bb7e665db90eb8de4f4ba6294
treedce42dca8b4c749910078522974c97b083dd7a13
parentbbbd262ec0f05c00f640c4594b5ed5e48b8f86ef
tcptls.c: Cleanup TCP/TLS listener thread on abnormal exit.

Temporarily running out of file descriptors should not terminate the
listener thread.  Otherwise, when there becomes more file descriptors
available, nothing is listening.

* Added EMFILE exception to abnormal thread exit.

* Added an abnormal TCP/TLS listener exit error message.

* Closed the TCP/TLS listener socket on abnormal exit so Asterisk does not
appear dead if something tries to connect to the socket.

ASTERISK-26903 #close

Change-Id: I10f2f784065136277f271159f0925927194581b5
main/tcptls.c