Browse Source

src: handle UV_EAGAIN in TryWrite

Reviewed-By: Fedor Indutny <fedor@indutny.com>
archived-io.js-v0.10
Saúl Ibarra Corretgé 11 years ago
committed by Fedor Indutny
parent
commit
28eee0adb7
  1. 2
      src/stream_wrap.cc

2
src/stream_wrap.cc

@ -605,7 +605,7 @@ int StreamWrapCallbacks::TryWrite(uv_buf_t** bufs, size_t* count) {
size_t vcount = *count;
err = uv_try_write(wrap()->stream(), vbufs, vcount);
if (err == UV_ENOSYS)
if (err == UV_ENOSYS || err == UV_EAGAIN)
return 0;
if (err < 0)
return err;

Loading…
Cancel
Save