mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
do not warn on accept when errno is egain|eintr
svn:r925
This commit is contained in:
parent
cca2f8fa0e
commit
b89a3de044
3
http.c
3
http.c
@ -2319,7 +2319,8 @@ accept_socket(evutil_socket_t fd, short what, void *arg)
|
||||
evutil_socket_t nfd;
|
||||
|
||||
if ((nfd = accept(fd, (struct sockaddr *)&ss, &addrlen)) == -1) {
|
||||
event_warn("%s: bad accept", __func__);
|
||||
if (errno != EAGAIN && errno != EINTR)
|
||||
event_warn("%s: bad accept", __func__);
|
||||
return;
|
||||
}
|
||||
if (evutil_make_socket_nonblocking(nfd) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user