diff --git a/src/unix/stream.c b/src/unix/stream.c index bb63dded..6f0d1378 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -562,7 +562,7 @@ static void uv__read(uv_stream_t* stream) { if (nread < 0) { /* Error */ - if (errno == EAGAIN) { + if (errno == EAGAIN || errno == EWOULDBLOCK) { /* Wait for the next one. */ if (stream->flags & UV_READING) { ev_io_start(ev, &stream->read_watcher);