unix: handle EWOULDBLOCK in uv__read()
This commit is contained in:
parent
01cc491853
commit
cf6dc082ca
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user