Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: handle EWOULDBLOCK in uv__read()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Apr 21, 2012
1 parent 4fd6264 commit a55a336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/stream.c
Expand Up @@ -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);
Expand Down

0 comments on commit a55a336

Please sign in to comment.