ef47e8b2 | 11-Oct-2015 |
Adam Stylinski |
unix: make work with Solaris Studio. The atomics that are in place of a lack of x86 cmpxchg are a GCC specific intrinsic. When compiling for Solaris on a SPARC platform with a non-g
unix: make work with Solaris Studio. The atomics that are in place of a lack of x86 cmpxchg are a GCC specific intrinsic. When compiling for Solaris on a SPARC platform with a non-gcc compiler, this prevents a successful build. This commit will rely on a Solaris Studio specific preprocessor macro to redefine the GCC intrinsic name to be the Solaris Studio one instead. PR-URL: https://github.com/libuv/libuv/pull/569 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
9fbcca04 | 13-Oct-2015 |
HungMingWu |
unix: fix uv__getiovmax return value On some embedded devices (arm-linux-uclibc based ip camera), sysconf(_SC_IOV_MAX) can not get the correct value. The return value is -1 and the e
unix: fix uv__getiovmax return value On some embedded devices (arm-linux-uclibc based ip camera), sysconf(_SC_IOV_MAX) can not get the correct value. The return value is -1 and the errno is EINPROGRESS. Degrade the value to 1. PR-URL: https://github.com/libuv/libuv/pull/573 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
bf52579f | 09-Oct-2015 |
Ben Noordhuis |
unix: only undo fs req registration in async mode Commit 0199955 ("fs: undo uv__req_init when uv__malloc failed") mistakingly unregisters the requests unconditionally in a few places,
unix: only undo fs req registration in async mode Commit 0199955 ("fs: undo uv__req_init when uv__malloc failed") mistakingly unregisters the requests unconditionally in a few places, resulting in memory corruption when it hasn't been registered first. Fixes: https://github.com/libuv/libuv/pull/543 PR-URL: https://github.com/libuv/libuv/pull/567 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
822969ad | 08-Oct-2015 |
Ben Noordhuis |
test: don't abort on setrlimit() failure Valgrind blocks the setrlimit() system call. Print a warning and skip the test, don't consider it a fatal error. PR-URL: https://github
test: don't abort on setrlimit() failure Valgrind blocks the setrlimit() system call. Print a warning and skip the test, don't consider it a fatal error. PR-URL: https://github.com/libuv/libuv/pull/565 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
14574964 | 08-Oct-2015 |
Ben Noordhuis |
unix: squelch harmless valgrind warning Valgrind complains that the msg_control pointer points to uninitialized memory. While the memory is only used for writing data to, not for re
unix: squelch harmless valgrind warning Valgrind complains that the msg_control pointer points to uninitialized memory. While the memory is only used for writing data to, not for reading data from, and the warning is therefore bogus, it's still annoying enough that I decided to squelch it by zeroing the memory. The performance implications should be minimal because this code path is only used when sending over a handle to another process. The warning: ==14859== Syscall param sendmsg(msg.msg_control) points to uninitialised byte(s) ==14859== at 0x5AF1A80: __sendmsg_nocancel (in /usr/lib64/libpthread-2.21.so) ==14859== by 0x46350E: uv__write (stream.c:810) ==14859== by 0x464B24: uv_write2 (stream.c:1398) ==14859== by 0x421ACE: run_test (test-ipc-send-recv.c:104) ==14859== by 0x421DD1: run_test_ipc_send_recv_tcp (test-ipc-send-recv.c:156) ==14859== by 0x406D2F: run_test_part (runner.c:404) ==14859== by 0x4058CD: main (run-tests.c:58) ==14859== Address 0xffefff934 is on thread 1's stack ==14859== in frame #1, created by uv__write (stream.c:742) PR-URL: https://github.com/libuv/libuv/pull/565 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
442b8a5a | 08-Oct-2015 |
Ben Noordhuis |
unix: use QUEUE_MOVE when iterating over lists Replace uses of QUEUE_FOREACH when the list can get modified while iterating over it, in particular when a callback is made into the us
unix: use QUEUE_MOVE when iterating over lists Replace uses of QUEUE_FOREACH when the list can get modified while iterating over it, in particular when a callback is made into the user's code. This should fix a number of spurious failures that people have been reporting. PR-URL: https://github.com/libuv/libuv/pull/565 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
1867a6c1 | 08-Oct-2015 |
Ben Noordhuis |
src: replace QUEUE_SPLIT with QUEUE_MOVE All uses of QUEUE_SPLIT in libuv split the list at the head so introduce a QUEUE_MOVE macro that automates that. PR-URL: https://github.
src: replace QUEUE_SPLIT with QUEUE_MOVE All uses of QUEUE_SPLIT in libuv split the list at the head so introduce a QUEUE_MOVE macro that automates that. PR-URL: https://github.com/libuv/libuv/pull/565 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
26917ddf | 07-Oct-2015 |
Jianghua Yang |
unix: fix request handle leak in uv__udp_send PR-URL: https://github.com/libuv/libuv/pull/561 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> |
5e761a5f | 03-Oct-2015 |
Fedor Indutny |
stream: support empty uv_try_write on unix PR-URL: https://github.com/libuv/libuv/pull/558 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> |
764877fd | 30-Sep-2015 |
Ryan Johnston |
win: fix compilation with VS < 2012 PR-URL: https://github.com/libuv/libuv/pull/554 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
037a8ab2 | 21-Sep-2015 |
Saúl Ibarra Corretgé |
win, test: fix compilation warning uv_os_fd_t is HANDLE on Windows, but closesocket needs a SOCKET. PR-URL: https://github.com/libuv/libuv/pull/534 Reviewed-By: Ben Noordhuis <i
win, test: fix compilation warning uv_os_fd_t is HANDLE on Windows, but closesocket needs a SOCKET. PR-URL: https://github.com/libuv/libuv/pull/534 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
a59085e1 | 19-Sep-2015 |
Peter Jas |
win: use the MSVC provided snprintf where possible PR-URL: https://github.com/libuv/libuv/pull/532 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
e5c03aed | 24-Sep-2015 |
Jianghua Yang |
include: remove duplicate extern declaration PR-URL: https://github.com/libuv/libuv/pull/547 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
2a98e76b | 24-Sep-2015 |
Saúl Ibarra Corretgé |
build: remove unused 'component' GYP option PR-URL: https://github.com/libuv/libuv/pull/548 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> |
01999559 | 23-Sep-2015 |
Jianghua Yang |
fs: undo uv__req_init when uv__malloc failed PR-URL: https://github.com/libuv/libuv/pull/543 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
25506bb3 | 22-Sep-2015 |
Gireesh Punathil |
unix: make uv_guess_handle work properly for AIX On AIX, the getsockname API does not operate on the UNIX domain sockets Please see: https://www-01.ibm.com/support/knowledgecenter/ssw_ai
unix: make uv_guess_handle work properly for AIX On AIX, the getsockname API does not operate on the UNIX domain sockets Please see: https://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/ com.ibm.aix.commtrf2/getsockname.htm This means that the internal helper routine uv_guess_handle in tty.c fails in AIX, for common use cases. There is no direct API support which helps identifying a UNIX domain socket in AIX. getpeername() retrieves the information pertinent to connected UNIX domain socket pairs, and using getpeername where getsockname fails was a good workaround. However, there are edge cases where one end of a socketpair comes for introspection while the other end has been closed, which causes getpeername to fail. A better solution is derived based on these facts: 1.getsockname() on a broken / un-broken socketpair does not actually fail with -1, instead it returns 0. However, the API does not modify the socketaddr structure passed to it, with the socket information. 2.This behavior of getsockname is observed only for UNIX domain socket, among all possible types of sockets which I tested - ~30 of them. So a practical and stable workaround for AIX is to return UV_UNKNOWN_HANDLE if getsockname fails. If it passes and the length of the structure returned is 0 then we know that the type is AF_UNIX and return UV_NAMED_PIPE , otherwise we inspect in the same way as for other platforms to derive the type. PR-URL: https://github.com/libuv/libuv/pull/539 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
25c369d4 | 22-Sep-2015 |
Jianghua Yang |
unix: fix memory leak in uv_interface_addresses PR-URL: https://github.com/libuv/libuv/pull/537 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
455c4035 | 22-Sep-2015 |
Saúl Ibarra Corretgé |
Now working on version 1.7.6 |
7a1996ae | 22-Sep-2015 |
Saúl Ibarra Corretgé |
Add SHA to ChangeLog |
a8c1136d | 22-Sep-2015 |
Saúl Ibarra Corretgé |
2015.09.23, Version 1.7.5 (Stable) Changes since version 1.7.4: * unix: Support atomic compare & swap xlC on AIX (nmushell) * unix: Fix including uv-aix.h on AIX (nmushell)
2015.09.23, Version 1.7.5 (Stable) Changes since version 1.7.4: * unix: Support atomic compare & swap xlC on AIX (nmushell) * unix: Fix including uv-aix.h on AIX (nmushell) * unix: consolidate rwlock tryrdlock trywrlock errors (Saúl Ibarra Corretgé) * unix, win: consolidate mutex trylock errors (Saúl Ibarra Corretgé) * darwin: fix memory leak in uv_cpu_info (Jianghua Yang) * test: add tests for the uv_rwlock implementation (Bert Belder) * win: redo/fix the uv_rwlock APIs (Bert Belder) * win: don't fetch function pointers to SRWLock APIs (Bert Belder)
show more ...
|
98239224 | 17-Sep-2015 |
Bert Belder |
win: don't fetch function pointers to SRWLock APIs They're no longer needed, since the Windows-native SRWLock functions are no longer used. PR-URL: https://github.com/libuv/libu
win: don't fetch function pointers to SRWLock APIs They're no longer needed, since the Windows-native SRWLock functions are no longer used. PR-URL: https://github.com/libuv/libuv/pull/525 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
9a4fd268 | 12-Sep-2015 |
Bert Belder |
win: redo/fix the uv_rwlock APIs Previously, on Windows Vista and later, we'd use the Windows native SRWLock APIs. However they turned out to be semantically incompatible with pthrea
win: redo/fix the uv_rwlock APIs Previously, on Windows Vista and later, we'd use the Windows native SRWLock APIs. However they turned out to be semantically incompatible with pthread read-write locks and/or plain buggy. This patch makes sure that the custom implementation that was previously only used on old Windows versions is now used everywhere. This patch fixes a number of issues with the old fallback implementation. Specifically: * The reader count would not be incremented when a thread successfully acquired a read lock while another thread *also* held a read lock. * `uv_rwlock_tryrdlock()` and `uv_rwlock_trywrlock()` now consistently return UV_EBUSY when a lock couldn't be acquired. * Any unexpected errors now cause libuv to abort, with the exception of `uv_rwlock_init()`. See also https://github.com/libuv/libuv/issues/515. PR-URL: https://github.com/libuv/libuv/pull/525 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
1ad6ad7a | 13-Sep-2015 |
Bert Belder |
test: add tests for the uv_rwlock implementation PR-URL: https://github.com/libuv/libuv/pull/525 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
9c307cc6 | 22-Sep-2015 |
Jianghua Yang |
darwin: fix memory leak in uv_cpu_info PR-URL: https://github.com/libuv/libuv/pull/538 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail
darwin: fix memory leak in uv_cpu_info PR-URL: https://github.com/libuv/libuv/pull/538 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
bd1777fd | 21-Sep-2015 |
Saúl Ibarra Corretgé |
unix, win: consolidate mutex trylock errors Fold EAGAIN into EBUSY, and make it the only acceptable error. PR-URL: https://github.com/libuv/libuv/pull/535 Reviewed-By: Ben Noord
unix, win: consolidate mutex trylock errors Fold EAGAIN into EBUSY, and make it the only acceptable error. PR-URL: https://github.com/libuv/libuv/pull/535 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|