f60713f7 | 18-Jan-2018 |
Jamie Davis |
doc: README: add note on installing gyp Problem: The instructions assume you have already installed gyp to build/gyp. If you run 'make' without doing so, it asks you to read
doc: README: add note on installing gyp Problem: The instructions assume you have already installed gyp to build/gyp. If you run 'make' without doing so, it asks you to read the README, which does not actually tell you about installing gyp. Solution: Add a one-liner `git clone` command to the setup instructions. PR-URL: https://github.com/libuv/libuv/pull/1712 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
875ce430 | 13-Feb-2018 |
ThePrez |
posix: fix uv__pollfds_del() for invalidated fd's Fix bug in `uv__pollfds_del()` where only one invalidated fd is purged. Calls to `uv__platform_invalidate_fd()` will invalidate descript
posix: fix uv__pollfds_del() for invalidated fd's Fix bug in `uv__pollfds_del()` where only one invalidated fd is purged. Calls to `uv__platform_invalidate_fd()` will invalidate descriptors (rather than removing them) when `poll()` is iterating. Under stressful conditions, this may happen more frequently than `uv__pollfds_del()` is called. So, when uv__pollfds_del() is called with a value of -1, it should iterate the entire array to remove all invalidated descriptors. PR-URL: https://github.com/libuv/libuv/pull/1738 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
d6dadc07 | 25-Feb-2018 |
Santiago Gimeno |
test: fix tcp_oob test flakiness `EAGAIN` is an acceptable return value for `read()` and the test was not taking it into account. Fixes: https://github.com/libuv/libuv/issues/16
test: fix tcp_oob test flakiness `EAGAIN` is an acceptable return value for `read()` and the test was not taking it into account. Fixes: https://github.com/libuv/libuv/issues/1602 PR-URL: https://github.com/libuv/libuv/pull/1759 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
502decd6 | 25-Feb-2018 |
cjihrig |
win: update uv_os_homedir() to use uv_os_getenv() This commit refactors uv_os_homedir() to to use uv_os_getenv() to retrieve the USERPROFILE environment variable. This removes a fair
win: update uv_os_homedir() to use uv_os_getenv() This commit refactors uv_os_homedir() to to use uv_os_getenv() to retrieve the USERPROFILE environment variable. This removes a fair amount of duplicated code, while introducing the following changes: 1. The function no longer returns UV_EIO when USERPROFILE is longer than MAX_PATH. This can be reinstated by adding a check for r == 0 && *size >= MAX_PATH. 2. The USERPROFILE string is now a char*, meaning that it must be converted from utf8 to utf16 by uv_os_getenv(). Refs: https://github.com/libuv/libuv/pull/1760 PR-URL: https://github.com/libuv/libuv/pull/1761 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
acbeb5fb | 26-Feb-2018 |
cjihrig |
win: remove unnecessary initialization There is no need to set req->fs.info.bufs to NULL and then memset() the entire req->fs struct on the next line. Refs: https://github.com/l
win: remove unnecessary initialization There is no need to set req->fs.info.bufs to NULL and then memset() the entire req->fs struct on the next line. Refs: https://github.com/libuv/libuv/pull/1752#discussion_r169953154 PR-URL: https://github.com/libuv/libuv/pull/1762 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
88c2af0e | 14-Nov-2017 |
Jameson Nash |
req: revisions to uv_req_t handling - Remove the `active_reqs` queue, which is never used. There are more efficient per-stream queues that `libuv` uses whenever it needs this
req: revisions to uv_req_t handling - Remove the `active_reqs` queue, which is never used. There are more efficient per-stream queues that `libuv` uses whenever it needs this information, so duplicating it and managing it here seems like unnecessary extra space and work. - Unix `uv_loop_init` didn't explicitly initialize. `loop->active_handles` (although it did memset the whole struct to 0, so it wasn't wrong previously, just inconsistent). - Consolidate repeated code for `uv__has_active_reqs`. - Change `uv__loop_alive` to use the helper functions (mirroring the unix copy of the same function). - Initialize some more uv_stream_t fields in init, rather than waiting for the connection callback. This helps surface bugs in libuv or the caller better, since it ensures libuv doesn't see uninitialized memory if asked to look at these fields before it thinks the socket is connected. - Fixes what appears to be a double-counting of `handle->reqs_pending`, in the highly-unlikely event that the code wants to emulate IOCP, but `RegisterWaitForSingleObject` somehow managed to fail. PR-URL: https://github.com/libuv/libuv/pull/1746 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
8f9ba2a5 | 13-Feb-2018 |
Jameson Nash |
Revert "Revert "unix,tcp: avoid marking server sockets connected"" This reverts commit 20987732434cdd0a11c4b86437a706509907d39c. PR-URL: https://github.com/libuv/libuv/pull/1741
Revert "Revert "unix,tcp: avoid marking server sockets connected"" This reverts commit 20987732434cdd0a11c4b86437a706509907d39c. PR-URL: https://github.com/libuv/libuv/pull/1741 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
c409b3fc | 13-Feb-2018 |
Jameson Nash |
unix,spawn: respect user stdio flags for new pipe `UV_READABLE_PIPE` and `UV_WRITABLE_PIPE` flags should be honored on unices. Windows is better about already doing this, so this wil
unix,spawn: respect user stdio flags for new pipe `UV_READABLE_PIPE` and `UV_WRITABLE_PIPE` flags should be honored on unices. Windows is better about already doing this, so this will make the behavior of these flags more consistent across platforms. It also is just better to set these flags to reflect the actual mode of the stream, rather than guessing at it based on typical usage. Refs: https://github.com/libuv/libuv/pull/1655 Refs: https://github.com/nodejs/node/pull/18701 PR-URL: https://github.com/libuv/libuv/pull/1741 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
cef8a462 | 21-Feb-2018 |
cjihrig |
Now working on version 1.19.3 Fixes: https://github.com/libuv/libuv/issues/1750 |
c653d94f | 21-Feb-2018 |
cjihrig |
Add SHA to ChangeLog |
c5afc37e | 21-Feb-2018 |
cjihrig |
2018.02.22, Version 1.19.2 (Stable) Changes since version 1.19.1: * test: fix incorrect asserts (cjihrig) * test: fix a typo in test-fork.c (Felix Yan) * build: re
2018.02.22, Version 1.19.2 (Stable) Changes since version 1.19.1: * test: fix incorrect asserts (cjihrig) * test: fix a typo in test-fork.c (Felix Yan) * build: remove long-obsolete gyp workarounds (Ben Noordhuis) * build: split off tests into separate gyp file (Ben Noordhuis) * test: check uv_cond_timedwait more carefully (Jamie Davis) * include,src: introduce UV__ERR() macro (Mason X) * build: add url field to libuv.pc (Ben Noordhuis) * doc: mark IBM i as Tier 3 support (Jesse Gorzinski) * win,build: correct C2059 errors (Michael Fero) * zos: fix timeout for condition variable (jBarz) * win: CREATE_NO_WINDOW when stdio is not inherited (Nick Logan) * build: fix commmon.gypi comment (Ryuichi KAWAMATA) * doc: document uv_timer_start() on an active timer (Vladimír Čunát) * doc: add note about handle movability (Bartosz Sosnowski) * doc: fix syntax error in loop documentation (Bartosz Sosnowski) * osx,stream: retry sending handle on EMSGSIZE error (Santiago Gimeno) * unix: delay fs req register until after validation (cjihrig) * test: add tests for bad inputs (Joyee Cheung) * unix,win: ensure req->bufs is freed (cjihrig) * test: add additional fs memory management checks (cjihrig)
show more ...
|
c1ecaf7b | 21-Feb-2018 |
cjihrig |
test: add additional fs memory management checks This commit adds checks for fs request values when a call fails with UV_EINVAL. PR-URL: https://github.com/libuv/libuv/pull/1752
test: add additional fs memory management checks This commit adds checks for fs request values when a call fails with UV_EINVAL. PR-URL: https://github.com/libuv/libuv/pull/1752 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
1167ec3f | 21-Feb-2018 |
cjihrig |
unix,win: ensure req->bufs is freed This commit ensures that req->bufs (req->fs.info.bufs on Windows) is initialized to NULL in INIT and freed, if necessary, in uv_fs_req_cleanup().
unix,win: ensure req->bufs is freed This commit ensures that req->bufs (req->fs.info.bufs on Windows) is initialized to NULL in INIT and freed, if necessary, in uv_fs_req_cleanup(). Refs: https://github.com/libuv/libuv/pull/1751#discussion_r169645330 PR-URL: https://github.com/libuv/libuv/pull/1752 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
e485d286 | 21-Feb-2018 |
Joyee Cheung |
test: add tests for bad inputs This commit adds tests that pass bad options to uv_fs_copyfile(), uv_fs_read(), and uv_fs_write(). These tests verify that the asynchronous version of
test: add tests for bad inputs This commit adds tests that pass bad options to uv_fs_copyfile(), uv_fs_read(), and uv_fs_write(). These tests verify that the asynchronous version of these functions do not hold the event loop open on bad inputs. Refs: https://github.com/nodejs/node/pull/18811 PR-URL: https://github.com/libuv/libuv/pull/1747 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
dab311af | 21-Feb-2018 |
cjihrig |
unix: delay fs req register until after validation On Unix, if a fs function fails validation after INIT but before sending the work to the thread pool, then is is necessary to manua
unix: delay fs req register until after validation On Unix, if a fs function fails validation after INIT but before sending the work to the thread pool, then is is necessary to manually unregister the request. This commit moves the registration to just before the work submission. This also makes Unix match the Windows behavior. Refs: https://github.com/libuv/libuv/pull/1747 Refs: https://github.com/nodejs/node/pull/18811 PR-URL: https://github.com/libuv/libuv/pull/1751 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
e6168df5 | 13-Feb-2018 |
Santiago Gimeno |
osx,stream: retry sending handle on EMSGSIZE error On OSX when sending handles via `sendmsg()` it can return `EMSGSIZE` if there isn't room in the socket output buffer to store the whole
osx,stream: retry sending handle on EMSGSIZE error On OSX when sending handles via `sendmsg()` it can return `EMSGSIZE` if there isn't room in the socket output buffer to store the whole message. If that's the case, return control to the loop and try again in the next iteration. Fixes: https://github.com/nodejs/node/issues/14828 PR-URL: https://github.com/libuv/libuv/pull/1739 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
a4b2e322 | 19-Feb-2018 |
Bartosz Sosnowski |
doc: fix syntax error in loop documentation PR-URL: https://github.com/libuv/libuv/pull/1748 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimen
doc: fix syntax error in loop documentation PR-URL: https://github.com/libuv/libuv/pull/1748 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
10fe8c80 | 19-Feb-2018 |
Bartosz Sosnowski |
doc: add note about handle movability Add note that explaining pointers to handles need to remain valid during the requested operations. Refs: https://github.com/libuv/libuv/iss
doc: add note about handle movability Add note that explaining pointers to handles need to remain valid during the requested operations. Refs: https://github.com/libuv/libuv/issues/1731 PR-URL: https://github.com/libuv/libuv/pull/1749 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
9d74b27a | 11-Sep-2017 |
Vladimír Čunát |
doc: document uv_timer_start() on an active timer Fixes: https://github.com/libuv/libuv/issues/1401 PR-URL: https://github.com/libuv/libuv/pull/1538 Reviewed-By: Colin Ihrig <cjihrig
doc: document uv_timer_start() on an active timer Fixes: https://github.com/libuv/libuv/issues/1401 PR-URL: https://github.com/libuv/libuv/pull/1538 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
3f8f6dc4 | 06-Dec-2017 |
Ryuichi KAWAMATA |
build: fix commmon.gypi comment PR-URL: https://github.com/libuv/libuv/pull/1669 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> |
491848a0 | 30-Nov-2017 |
Nick Logan |
win: CREATE_NO_WINDOW when stdio is not inherited Fixes: https://github.com/libuv/libuv/issues/1625 PR-URL: https://github.com/libuv/libuv/pull/1659 Reviewed-By: Bartosz Sosnowski <b
win: CREATE_NO_WINDOW when stdio is not inherited Fixes: https://github.com/libuv/libuv/issues/1625 PR-URL: https://github.com/libuv/libuv/pull/1659 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
1ded6690 | 17-Jan-2018 |
John Barboza |
zos: fix timeout for condition variable The pthread_cond_timedwait requires a timeout relative to the Epoch. So don't use uv__hrtime to set the timeout because it is relative to an a
zos: fix timeout for condition variable The pthread_cond_timedwait requires a timeout relative to the Epoch. So don't use uv__hrtime to set the timeout because it is relative to an arbitrary time in the past. Use gettimeofday instead. PR-URL: https://github.com/libuv/libuv/pull/1711 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jamie Davis <davisjam@vt.edu>
show more ...
|
95e44dd4 | 13-Feb-2018 |
Michael Fero |
win,build: correct C2059 errors This commit addresses POD variable initialization issues with older Visual Studio compilers. PR-URL: https://github.com/libuv/libuv/pull/1740
win,build: correct C2059 errors This commit addresses POD variable initialization issues with older Visual Studio compilers. PR-URL: https://github.com/libuv/libuv/pull/1740 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
733adae2 | 30-Jan-2018 |
Jesse Gorzinski |
doc: mark IBM i as Tier 3 support PR-URL: https://github.com/libuv/libuv/pull/1732 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Re
doc: mark IBM i as Tier 3 support PR-URL: https://github.com/libuv/libuv/pull/1732 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
c4315058 | 08-Feb-2018 |
Ben Noordhuis |
build: add url field to libuv.pc PR-URL: https://github.com/libuv/libuv/pull/1733 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> |