src: handle UV_EAGAIN in TryWrite
Reviewed-By: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
7ca4fa56d0
commit
28eee0adb7
@ -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…
x
Reference in New Issue
Block a user