mirror of
https://github.com/cuberite/libevent.git
synced 2025-10-04 08:41:14 -04:00
made the wrong fd non-blocking in accept_socket; from szjwwu
svn:r364
This commit is contained in:
parent
3794534feb
commit
cf5c1fcebb
2
http.c
2
http.c
@ -1873,7 +1873,7 @@ accept_socket(int fd, short what, void *arg)
|
|||||||
event_warn("%s: bad accept", __func__);
|
event_warn("%s: bad accept", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (event_make_socket_nonblocking(fd) < 0)
|
if (event_make_socket_nonblocking(nfd) < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
evhttp_get_request(http, nfd, (struct sockaddr *)&ss, addrlen);
|
evhttp_get_request(http, nfd, (struct sockaddr *)&ss, addrlen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user