From 13e697f8c05753cf11158c84ace03ea7d25e1551 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 13 Jun 2014 05:16:34 +0000 Subject: AST-2014-007: Fix of fix to allow AMI and SIP TCP to send messages. ASTERISK-23673 #close Reported by: Richard Mudgett Review: https://reviewboard.asterisk.org/r/3617/ ........ Merged revisions 416066 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 416067 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 416070 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@416071 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/manager.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main/manager.c') diff --git a/main/manager.c b/main/manager.c index b4c70a0fc..7a7e8903a 100644 --- a/main/manager.c +++ b/main/manager.c @@ -5907,6 +5907,12 @@ static void *session_do(void *data) } ao2_unlock(session); + /* + * We cannot let the stream exclusively wait for data to arrive. + * We have to wake up the task to send async events. + */ + ast_tcptls_stream_set_exclusive_input(ser->stream_cookie, 0); + ast_tcptls_stream_set_timeout_sequence(ser->stream_cookie, ast_tvnow(), authtimeout * 1000); -- cgit v1.2.3