454ab3e1 | 30-May-2018 |
Ben Noordhuis |
build: fix cygwin install Use the right file path and variable name for the posix.h header file. Introduced when commit ce41af28 ("cygwin: include uv-posix.h header") was merged
build: fix cygwin install Use the right file path and variable name for the posix.h header file. Introduced when commit ce41af28 ("cygwin: include uv-posix.h header") was merged from the v1.x branch, where it is the correct path, into the master branch. This is a cherry-pick of commit d0c2ad39 from the master branch. PR-URL: https://github.com/libuv/libuv/pull/1850 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
47dcc07c | 28-May-2018 |
Ben Noordhuis |
win: move stdint-msvc2008.h to include/uv/ Move it so that include/ contains uv.h and nothing more. PR-URL: https://github.com/libuv/libuv/pull/1850 Reviewed-By: Colin Ihrig <cj
win: move stdint-msvc2008.h to include/uv/ Move it so that include/ contains uv.h and nothing more. PR-URL: https://github.com/libuv/libuv/pull/1850 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
99ae3edf | 22-Jul-2017 |
Saúl Ibarra Corretgé |
core: move all include files except uv.h to uv/ This is a cherry-pick of commit d010030ad5 from the master branch. Conflicts: Makefile.am include/uv.h
core: move all include files except uv.h to uv/ This is a cherry-pick of commit d010030ad5 from the master branch. Conflicts: Makefile.am include/uv.h include/uv/unix.h libuv.nsi (deleted) src/unix/pthread-barrier.c (deleted) PR-URL: https://github.com/libuv/libuv/pull/1850 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
0cdb4a5b | 05-Jun-2018 |
cjihrig |
test: speedup process-title-threadsafe on macOS This test has been timing out on macOS. Try to avoid that by reducing the number of iterations run. PR-URL: https://github.com/li
test: speedup process-title-threadsafe on macOS This test has been timing out on macOS. Try to avoid that by reducing the number of iterations run. PR-URL: https://github.com/libuv/libuv/pull/1867 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Bert Belder <bertbelder@gmail.com>
show more ...
|
a7493d8a | 30-May-2018 |
Bert Belder |
win: remove the remaining dynamic kernel32 imports They were only there to aid Windows XP support, which libuv no longer does. PR-URL: https://github.com/libuv/libuv/pull/1858
win: remove the remaining dynamic kernel32 imports They were only there to aid Windows XP support, which libuv no longer does. PR-URL: https://github.com/libuv/libuv/pull/1858 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
fd8d212a | 30-May-2018 |
Bert Belder |
win,code: remove GetQueuedCompletionStatus-based poller All Windows versions that libuv supports have GetQueuedCompletionStatusEx, so this fallback option is no longer needed. P
win,code: remove GetQueuedCompletionStatus-based poller All Windows versions that libuv supports have GetQueuedCompletionStatusEx, so this fallback option is no longer needed. PR-URL: https://github.com/libuv/libuv/pull/1858 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
bada9951 | 30-May-2018 |
Bert Belder |
win,pipe: remove unreferenced local variable PR-URL: https://github.com/libuv/libuv/pull/1858 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@jan
win,pipe: remove unreferenced local variable PR-URL: https://github.com/libuv/libuv/pull/1858 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
6103d294 | 03-Jun-2018 |
cjihrig |
unix: return UV_ENOTSUP on FICLONE_FORCE failure Instead of returning whatever error is provided by the underlying platform, use UV_ENOTSUP. Fixes: https://github.com/libuv/libu
unix: return UV_ENOTSUP on FICLONE_FORCE failure Instead of returning whatever error is provided by the underlying platform, use UV_ENOTSUP. Fixes: https://github.com/libuv/libuv/issues/1862 PR-URL: https://github.com/libuv/libuv/pull/1863 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
0c283630 | 03-Jun-2018 |
cjihrig |
win: allow setting udp socket options before bind Unix allows socket options to be set prior to binding. This commit aligns Windows with this behavior. Refs: https://github.com/
win: allow setting udp socket options before bind Unix allows socket options to be set prior to binding. This commit aligns Windows with this behavior. Refs: https://github.com/joyent/libuv/issues/1205 Refs: https://github.com/joyent/libuv/pull/1270 Fixes: https://github.com/libuv/libuv/issues/1842 PR-URL: https://github.com/libuv/libuv/pull/1861 Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
a4623c73 | 30-May-2018 |
Ben Noordhuis |
unix: close signal pipe fds on unload Add a destructor function that closes the file descriptors when libuv.so is unloaded. Fixes: https://github.com/libuv/help/issues/52 PR
unix: close signal pipe fds on unload Add a destructor function that closes the file descriptors when libuv.so is unloaded. Fixes: https://github.com/libuv/help/issues/52 PR-URL: https://github.com/libuv/libuv/pull/1857 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
06fdc2bd | 27-May-2018 |
cjihrig |
src,test: s/olny/only PR-URL: https://github.com/libuv/libuv/pull/1848 Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> |
13e8b15e | 28-May-2018 |
Bert Belder |
win,thread: remove fallback uv_cond implementation The fallback implementation existed to support Windows XP and Server 2003, but these old versions of windows are no longer supporter by
win,thread: remove fallback uv_cond implementation The fallback implementation existed to support Windows XP and Server 2003, but these old versions of windows are no longer supporter by libuv. PR-URL: https://github.com/libuv/libuv/pull/1852 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
e318e001 | 29-May-2018 |
Bert Belder |
Revert "win: add Windows XP support to uv_if_indextoname()" Libuv is not supported on Windows XP, as stated in the SUPPORTED_PLATFORMS document. It also can't possibly work because `
Revert "win: add Windows XP support to uv_if_indextoname()" Libuv is not supported on Windows XP, as stated in the SUPPORTED_PLATFORMS document. It also can't possibly work because `ReOpenFile()` in src/win/fs.c is not weakly linked, so any executable that links libuv would simply fail to load on XP. This reverts commit 17eaa956bde35daad99b36b820daf8e8227add74. Refs: https://github.com/libuv/libuv/pull/1810 PR-URL: https://github.com/libuv/libuv/pull/1854 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
585dc821 | 30-May-2018 |
Ben Noordhuis |
test: use custom timeout for getaddrinfo_fail_sync We don't control the running time of the test and as a result it frequently times out on some of the CI buildbots. We are alre
test: use custom timeout for getaddrinfo_fail_sync We don't control the running time of the test and as a result it frequently times out on some of the CI buildbots. We are already using a custom timeout for getaddrinfo_fail so it only makes sense to do the same for its synchronous counterpart. PR-URL: https://github.com/libuv/libuv/pull/1856 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
2256be01 | 28-May-2018 |
Ben Noordhuis |
unix: catch some cases of watching fd twice Libuv does not support multiple handles watching the same file descriptor. That condition is caught by an assert but it's detached from t
unix: catch some cases of watching fd twice Libuv does not support multiple handles watching the same file descriptor. That condition is caught by an assert but it's detached from the call site and therefore not always trivial to track down. This commit turns cases where we can easily detect duplicates into runtime `UV_EEXIST` errors. More work is needed to catch _all_ cases. Partially addresses https://github.com/libuv/libuv/issues/1172. PR-URL: https://github.com/libuv/libuv/pull/1851 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
4e53af91 | 22-May-2018 |
Bert Belder |
win,pipe: fix IPC pipe deadlock This fixes a bug where IPC pipe communication would deadlock when both ends of the pipe are written to simultaneously, and the kernel pipe buffer has
win,pipe: fix IPC pipe deadlock This fixes a bug where IPC pipe communication would deadlock when both ends of the pipe are written to simultaneously, and the kernel pipe buffer has already been filled up by earlier writes. The root cause of the deadlock is that, while writes to an IPC pipe are generally asynchronous, the IPC frame header is written synchronously. So when both ends of the pipe are sending a frame header at the same time, neither will read data off the pipe, causing both header writes to block indefinitely. Additionally, this patch somewhat reduces the spaghetti level in win/pipe.c. Fixes: https://github.com/libuv/libuv/issues/1099 Refs: https://github.com/nodejs/node/issues/7657 Refs: https://github.com/electron/electron/issues/10107 Refs: https://github.com/parcel-bundler/parcel/issues/637 Refs: https://github.com/parcel-bundler/parcel/issues/900 Refs: https://github.com/parcel-bundler/parcel/issues/1137 PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
421d7571 | 20-May-2018 |
Bert Belder |
test: add test for IPC deadlock on Windows (#1099) PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <b
test: add test for IPC deadlock on Windows (#1099) PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
b6eb3cef | 21-May-2018 |
Bert Belder |
test: improve output from IPC test helpers PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@j
test: improve output from IPC test helpers PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
4f60e0c1 | 23-May-2018 |
Bert Belder |
win,pipe: refactor pipe read cancellation logic * Don't silently ignore ERROR_OPERATION_ABORTED. Code to silently ignore this error was added in c42a4ca, under the false pre
win,pipe: refactor pipe read cancellation logic * Don't silently ignore ERROR_OPERATION_ABORTED. Code to silently ignore this error was added in c42a4ca, under the false premise that this error is somehow equivalent to EINTR on posix platforms. This isn't true; ERROR_OPERATION_ABORTED doesn't happen unless the application explicitly aborts an I/O operation. Silently ignoring this error elsewhere could potentially hide bugs, hence libuv shouldn't do it. Instead, explicitly deal with it where it is expected. * Don't mark aborted reads as successful. The worker thread used to call ReadFile() on synchronous pipes would incorrectly mark cancelled read requests as successful, leading to issues later on. * Rely on main thread to restart aborted reads. After a blocking ReadFile() call was cancelled, the worker thread would previously attempt to restart it immediately, making synchronization logic needlessly complex. Instead, we simply cancel the operation, and leave it to the main loop to restart it if so desired. Since we now realy on the main thread to restart interrupted ReadFile() calls, we can now have a single function interrupts a synchronous read until the event loop restarts it again. * Clean up uv__pipe_read_stop(). A single function to interrupt blocking reads also allows us to remove weird logic in uv__pipe_read_stop() that quickly pauses and unpauses a read operation in the hope of cancelling it. * Assume CancelIo() and CancelSynchronousIo() are always available. Since libuv doesn't support windows XP and Server 2003 any more, we can assume that these APIs are always available, and do away with branching around them. PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
12733dd4 | 21-May-2018 |
Bert Belder |
win,pipe: support vectored uv_write() calls Fixes: https://github.com/libuv/libuv/issues/794 PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addal
win,pipe: support vectored uv_write() calls Fixes: https://github.com/libuv/libuv/issues/794 PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
b36c0945 | 22-May-2018 |
Bert Belder |
test: add vectored uv_write() ping-pong tests PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartos
test: add vectored uv_write() ping-pong tests PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
e7e8b6fb | 22-May-2018 |
Bert Belder |
win,pipe: properly set uv_write_t.send_handle in uv_write2() PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz So
win,pipe: properly set uv_write_t.send_handle in uv_write2() PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
58dd8d45 | 25-May-2018 |
Bert Belder |
win,pipe: fix incorrect error code returned from uv_pipe_write_impl() PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: B
win,pipe: fix incorrect error code returned from uv_pipe_write_impl() PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
5191ab5e | 20-May-2018 |
Bert Belder |
test: fs_fchmod_archive_readonly must return a value PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski
test: fs_fchmod_archive_readonly must return a value PR-URL: https://github.com/libuv/libuv/pull/1843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|
9584df25 | 29-May-2018 |
Bert Belder |
src,test: fix idiosyncratic comment style Back in the day I wrote comments in a really unusual way. Nowadays it makes my eyes bleed, and clang-format doesn't know how to deal with it.
src,test: fix idiosyncratic comment style Back in the day I wrote comments in a really unusual way. Nowadays it makes my eyes bleed, and clang-format doesn't know how to deal with it. PR-URL: https://github.com/libuv/libuv/pull/1853 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
show more ...
|