made the wrong fd non-blocking in accept_socket; from szjwwu

svn:r364
This commit is contained in:
Niels Provos 2007-06-08 16:06:23 +00:00
parent 3794534feb
commit cf5c1fcebb

2
http.c
View File

@ -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);