Review Board 1.7.16


tcptls: Bad file descriptor error when reloading chan_sip

Review Request #4380 - Created Jan. 27, 2015 and submitted

Kevin Harwell
11
ASTERISK-24728
Reviewers
asterisk-dev
Asterisk
While running through some scenarios using chan_sip and tcp a problem would occur that resulted in a flood of bad file descriptor messages on the cli:

tcptls.c:712 ast_tcptls_server_root: Accept failed: Bad file descriptor

The message is received because the underlying socket has been closed, so is valid. This is probably happening because unloading of chan_sip is not atomic. That however is outside the scope of this patch. This patch simply stops the logging of multiple occurrences of that message.
This issue was found while doing some testing. Ran those tests again to make sure that the messages no longer consumed the cli and only printed once.
Total:
1
Open:
0
Resolved:
1
Dropped:
0
Status:
From:
Review request changed
Updated (Jan. 27, 2015, 5:23 p.m.)
  • changed from pending to submitted
Committed in revision 431237

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.