From 7470ce52c5670bae0ef2a9aa6a77988e0a77e0cb Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 26 Feb 2008 03:49:00 +0000 Subject: [PATCH] increase listen queue for http sockets to 128 svn:r669 --- ChangeLog | 1 + http.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cc123f35..887c65d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -50,6 +50,7 @@ Changes in current version: o add support for PUT/DELETE requests; from Josh Rotenberg o introduce evhttp_accept_socket() to accept from an already created socket o include Content-Length in reply for HTTP/1.0 requests with keep-alive + o increase listen queue for http sockets to 128; if that is not enough the evhttp_accpet_socket() api can be used with a prepared socket. Changes in 1.4.0: diff --git a/http.c b/http.c index e2e5aeb3..80396fd2 100644 --- a/http.c +++ b/http.c @@ -2018,7 +2018,7 @@ evhttp_bind_socket(struct evhttp *http, const char *address, u_short port) if ((fd = bind_socket(address, port)) == -1) return (-1); - if (listen(fd, 10) == -1) { + if (listen(fd, 128) == -1) { event_warn("%s: listen", __func__); EVUTIL_CLOSESOCKET(fd); return (-1); -- 2.40.0