unix: handle EWOULDBLOCK in uv__server_io()
This commit is contained in:
parent
73cc3677fc
commit
df22d5935e
@ -176,7 +176,7 @@ void uv__server_io(EV_P_ ev_io* watcher, int revents) {
|
||||
fd = uv__accept(stream->fd, (struct sockaddr*)&addr, sizeof addr);
|
||||
|
||||
if (fd < 0) {
|
||||
if (errno == EAGAIN) {
|
||||
if (errno == EAGAIN || errno == EWOULDBLOCK) {
|
||||
/* No problem. */
|
||||
return;
|
||||
} else if (errno == EMFILE) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user