diff options
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c index e76163105..1b7e08a66 100644 --- a/main/http.c +++ b/main/http.c @@ -504,6 +504,8 @@ static void *http_root(void *data) } ser = ast_calloc(1, sizeof(*ser)); if (ser) { + int flags = fcntl(fd, F_GETFL); + fcntl(fd, F_SETFL, flags & ~O_NONBLOCK); ser->fd = fd; memcpy(&ser->requestor, &sin, sizeof(ser->requestor)); if ((ser->f = fdopen(ser->fd, "w+"))) { |