mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@356677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -128,6 +128,7 @@ struct ast_tcptls_session_args { | ||||
| 	struct ast_tls_config *tls_cfg; /*!< points to the SSL configuration if any */ | ||||
| 	int accept_fd; | ||||
| 	int poll_timeout; | ||||
| 	/*! Server accept_fn thread ID used for external shutdown requests. */ | ||||
| 	pthread_t master; | ||||
| 	void *(*accept_fn)(void *); /*!< the function in charge of doing the accept */ | ||||
| 	void (*periodic_fn)(void *);/*!< something we may want to run before after select on the accept socket */ | ||||
| @@ -146,6 +147,7 @@ struct ast_tcptls_session_instance { | ||||
| 	int client; | ||||
| 	struct ast_sockaddr remote_address; | ||||
| 	struct ast_tcptls_session_args *parent; | ||||
| 	/*! XXX Why do we still use this lock when this struct is allocated as an ao2 object which has its own lock? */ | ||||
| 	ast_mutex_t lock; | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user