Skip to content

Commit 28eee0a

Browse files
saghulindutny
authored andcommitted
src: handle UV_EAGAIN in TryWrite
Reviewed-By: Fedor Indutny <fedor@indutny.com>
1 parent 7ca4fa5 commit 28eee0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stream_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ int StreamWrapCallbacks::TryWrite(uv_buf_t** bufs, size_t* count) {
605605
size_t vcount = *count;
606606

607607
err = uv_try_write(wrap()->stream(), vbufs, vcount);
608-
if (err == UV_ENOSYS)
608+
if (err == UV_ENOSYS || err == UV_EAGAIN)
609609
return 0;
610610
if (err < 0)
611611
return err;

0 commit comments

Comments
 (0)