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 01cc491 commit cf6dc082caf61c46689341e9c515f7ae81ffbce2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit cf6dc08

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