mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
increase listen queue for http sockets to 128
svn:r669
This commit is contained in:
parent
960be58869
commit
7470ce52c5
@ -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:
|
||||
|
2
http.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user