]> git.ipfire.org Git - thirdparty/asterisk.git/commit
tcptls: Bad file descriptor error when reloading chan_sip
authorKevin Harwell <kharwell@digium.com>
Tue, 27 Jan 2015 23:02:42 +0000 (23:02 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 27 Jan 2015 23:02:42 +0000 (23:02 +0000)
commit8d5f90bb39a90ecd51a466ec4df520e937deca5d
tree3c2f2f88a4f5ae6f93e97e373d2380c41fc49acc
parentdd382f366070300d6baf6db9fb2eca1d36b8e9c6
tcptls: Bad file descriptor error when reloading chan_sip

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.

ASTERISK-24728 #close
Reported by: Thomas Thompson
Review: https://reviewboard.asterisk.org/r/4380/
........

Merged revisions 431218 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 431219 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@431221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/tcptls.c