summaryrefslogtreecommitdiff
path: root/channels/sip/include
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2012-02-24 18:33:04 +0000
committerRichard Mudgett <rmudgett@digium.com>2012-02-24 18:33:04 +0000
commitebe2c33b7239b2881007efa3efd8d8a859f0b653 (patch)
tree1ea2be16f26726b316809648cdd7f71fe24239ba /channels/sip/include
parent8e1f841dde99b00e0581e8d5f2859bc503d70aed (diff)
Fix worker thread resource leak in SIP TCP/TLS.
The SIP TCP/TLS worker threads were created joinable but noone could join them if they died on their own. * Fix the SIP TCP/TLS worker threads to not be created joinable. * _sip_tcp_helper_thread() only needs one parameter since the pvt parameter is only passed in as NULL and never used. (closes issue ASTERISK-19203) Reported by: Steve Davies Review: https://reviewboard.asterisk.org/r/1714/ ........ Merged revisions 356677 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 356690 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip/include')
-rw-r--r--channels/sip/include/sip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/sip/include/sip.h b/channels/sip/include/sip.h
index 0ae8be8f8..2f9beff84 100644
--- a/channels/sip/include/sip.h
+++ b/channels/sip/include/sip.h
@@ -1393,6 +1393,7 @@ struct tcptls_packet {
};
/*! \brief Definition of a thread that handles a socket */
struct sip_threadinfo {
+ /*! TRUE if the thread needs to kill itself. (The module is being unloaded.) */
int stop;
int alert_pipe[2]; /*! Used to alert tcptls thread when packet is ready to be written */
pthread_t threadid;