]> granicus.if.org Git - libevent/commitdiff
increase listen queue for http sockets to 128
authorNiels Provos <provos@gmail.com>
Tue, 26 Feb 2008 03:49:00 +0000 (03:49 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 26 Feb 2008 03:49:00 +0000 (03:49 +0000)
svn:r669

ChangeLog
http.c

index cc123f35f59a4254ae923b774f3e216ffa2f4945..887c65d9e1653bae86d4b80ef993213ff673a6f9 100644 (file)
--- 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 e2e5aeb3c62d93c34c10eb558ca53d10c3a15031..80396fd2a1488d678e275dc0229ecd92ec3a3d29 100644 (file)
--- 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);