diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-06-13 05:16:34 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-06-13 05:16:34 +0000 |
commit | 13e697f8c05753cf11158c84ace03ea7d25e1551 (patch) | |
tree | 0ac60551edd70cf74321f925bea0239f42cf8a03 /main/http.c | |
parent | 9ec50643832652548a40a13fa86d52120793eb43 (diff) |
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
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c index 19b0199c8..7b3a3cee4 100644 --- a/main/http.c +++ b/main/http.c @@ -1326,6 +1326,9 @@ static void *httpd_helper_thread(void *data) flags |= O_NONBLOCK; fcntl(ser->fd, F_SETFL, flags); + /* We can let the stream wait for data to arrive. */ + ast_tcptls_stream_set_exclusive_input(ser->stream_cookie, 1); + ast_tcptls_stream_set_timeout_inactivity(ser->stream_cookie, session_inactivity); if (!fgets(buf, sizeof(buf), ser->f) || feof(ser->f)) { |