diff options
author | cjihrig <cjihrig@gmail.com> | 2018-04-02 13:33:48 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-04-04 20:02:17 -0400 |
commit | ae2b5bcb7c17a2d2a488f234c736201eed8200db (patch) | |
tree | 0c1ee75429727adc13cd61b63e866f45d9f71fbc /deps/uv/src/unix/stream.c | |
parent | 67cce8d68ad091857b583aa8564d5ac0aaaf2bea (diff) | |
download | android-node-v8-ae2b5bcb7c17a2d2a488f234c736201eed8200db.tar.gz android-node-v8-ae2b5bcb7c17a2d2a488f234c736201eed8200db.tar.bz2 android-node-v8-ae2b5bcb7c17a2d2a488f234c736201eed8200db.zip |
deps: upgrade libuv to 1.20.0
Notable changes:
- uv_fs_copyfile() adds support for copy-on-write behavior.
- uv_relative_path() now uses the long directory name
for handle->dirw.
- File operations on files > 2 GB on 32-bit platforms are
working again.
- uv_fs_fchmod() on Windows works on files with the
Archive flag cleared.
Fixes: https://github.com/nodejs/node/issues/19170
Fixes: https://github.com/nodejs/node/issues/19455
Fixes: https://github.com/nodejs/node/issues/12803
PR-URL: https://github.com/nodejs/node/pull/19758
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/uv/src/unix/stream.c')
-rw-r--r-- | deps/uv/src/unix/stream.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/uv/src/unix/stream.c b/deps/uv/src/unix/stream.c index 3e786abee0..5ec6bf4de2 100644 --- a/deps/uv/src/unix/stream.c +++ b/deps/uv/src/unix/stream.c @@ -1417,6 +1417,9 @@ int uv_write2(uv_write_t* req, if (uv__stream_fd(stream) < 0) return UV_EBADF; + if (!(stream->flags & UV_STREAM_WRITABLE)) + return -EPIPE; + if (send_handle) { if (stream->type != UV_NAMED_PIPE || !((uv_pipe_t*)stream)->ipc) return UV_EINVAL; @@ -1568,6 +1571,9 @@ int uv_read_start(uv_stream_t* stream, if (stream->flags & UV_CLOSING) return UV_EINVAL; + if (!(stream->flags & UV_STREAM_READABLE)) + return -ENOTCONN; + /* The UV_STREAM_READING flag is irrelevant of the state of the tcp - it just * expresses the desired state of the user. */ |