unix: handle EWOULDBLOCK in uv__read()
This commit is contained in:
parent
4fd6264883
commit
a55a33625e
@ -596,7 +596,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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user