]> 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:15:01 +0000 (11:15 -0500)
commit866510d85b58874a3702e25706818e0545fff82d
tree7192220ee82fe0897211a03075438c0569476faa
parent09252e9d59c0abc6fe98bc144c3e962e22dc5f07
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