summaryrefslogtreecommitdiff
path: root/main/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c3
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)) {