Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: handle EWOULDBLOCK in uv__read()

  • Loading branch information...
bnoordhuis committed Apr 21, 2012
1 parent 4fd6264 commit a55a33625ea60f6c840a739cfc3b568bb40674ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/unix/stream.c
@@ -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);

0 comments on commit a55a336

Please sign in to comment.
You can’t perform that action at this time.