[Asterisk-code-review] tcptls.c: Cleanup TCP/TLS listener thread on abnormal exit. (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Tue Apr 11 11:15:23 CDT 2017


Hello Anonymous Coward #1000019, Joshua Colp, Walter Doekes,

I'd like you to reexamine a change.  Please visit

    https://gerrit.asterisk.org/5449

to look at the new patch set (#2).

Change subject: tcptls.c: Cleanup TCP/TLS listener thread on abnormal exit.
......................................................................

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
---
M main/tcptls.c
1 file changed, 23 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/49/5449/2
-- 
To view, visit https://gerrit.asterisk.org/5449
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I10f2f784065136277f271159f0925927194581b5
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Walter Doekes <walter+asterisk at wjd.nu>



More information about the asterisk-code-review mailing list