From: Niels Provos Date: Fri, 8 Jun 2007 16:06:23 +0000 (+0000) Subject: made the wrong fd non-blocking in accept_socket; from szjwwu X-Git-Tag: release-2.0.1-alpha~617 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf5c1fcebbb698a39603c92ea0928d1c603abbd5;p=libevent made the wrong fd non-blocking in accept_socket; from szjwwu svn:r364 --- diff --git a/http.c b/http.c index e69c33a5..88c86959 100644 --- a/http.c +++ b/http.c @@ -1873,7 +1873,7 @@ accept_socket(int fd, short what, void *arg) event_warn("%s: bad accept", __func__); return; } - if (event_make_socket_nonblocking(fd) < 0) + if (event_make_socket_nonblocking(nfd) < 0) return; evhttp_get_request(http, nfd, (struct sockaddr *)&ss, addrlen);