#
3fc580ec |
| 12-Aug-2020 |
司徒玟琅 |
cmake: fix compile error C2001 on Chinese Windows Fixes: https://github.com/libuv/libuv/issues/2887 PR-URL: https://github.com/libuv/libuv/pull/2889 Reviewed-By: Jameson Nash <vtjnas
cmake: fix compile error C2001 on Chinese Windows Fixes: https://github.com/libuv/libuv/issues/2887 PR-URL: https://github.com/libuv/libuv/pull/2889 Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.37.0, v1.36.0, v1.35.0 |
|
#
ea92e9c7 |
| 07-Feb-2020 |
Richard Lau |
aix: protect uv_exepath() from uv_set_process_title() Store a copy of the original argv[0] to protect `uv_exepath()` against `uv_set_process_title()` changing the value of argv[0].
aix: protect uv_exepath() from uv_set_process_title() Store a copy of the original argv[0] to protect `uv_exepath()` against `uv_set_process_title()` changing the value of argv[0]. Extract common code for finding a program on the current PATH. Fixes: https://github.com/libuv/libuv/issues/2674 PR-URL: https://github.com/libuv/libuv/pull/2677 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
#
e8effd45 |
| 26-Mar-2020 |
Trevor Norris |
core: add API to measure event loop idle time The API addition `uv_metrics_idle_time()` is a thread safe call that allows the user to retrieve the amount of time the event loop has spent
core: add API to measure event loop idle time The API addition `uv_metrics_idle_time()` is a thread safe call that allows the user to retrieve the amount of time the event loop has spent in the kernel's event provider (i.e. poll). It was done this way to allow retrieving this value without needing to interrupt the execution of the event loop. This option can be enabled by passing `UV_METRICS_IDLE_TIME` to `uv_loop_configure()`. One important aspect of this change is, when enabled, to always first call the event provider with a `timeout == 0`. This allows libuv to know whether any events were waiting in the event queue when the event provider was called. The importance of this is because libuv is tracking the amount of "idle time", not "poll time". Thus the provider entry time is not recorded when `timeout == 0` (the event provider never idles in this case). While this does add a small amount of overhead, when enabled, but the overhead decreases when the event loop has a heavier load. This is because poll events will be waiting when the event provider is called. Thus never actually recording the provider entry time. Checking if `uv_loop_t` is configured with `UV_METRICS_IDLE_TIME` always happens in `uv__metrics_set_provider_entry_time()` and `uv__metrics_update_idle_time()`. Making the conditional logic wrapping each call simpler and allows for instrumentation to always hook into those two function calls. Rather than placing the fields directly on `uv__loop_internal_fields_t` add the struct `uv__loop_metrics_t` as a location for future metrics API additions. Tests and additional documentation has been included. PR-URL: https://github.com/libuv/libuv/pull/2725 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
#
540d723f |
| 29-Jul-2020 |
Ryan Liptak |
test: add udp-mmsg test PR-URL: https://github.com/libuv/libuv/pull/2818 Reviewed-By: Jameson Nash <vtjnash@gmail.com> |
#
f779fd4f |
| 28-Jul-2020 |
Michael Penick |
win,tcp: avoid reinserting a pending request (#2688) This fix avoids inserting a duplicate pending request in the case where `WSARecv()` returns an error (e.g. when a connection has been
win,tcp: avoid reinserting a pending request (#2688) This fix avoids inserting a duplicate pending request in the case where `WSARecv()` returns an error (e.g. when a connection has been terminated by its peer) when `uv_read_start()` is called in a read callback. Fixes: https://github.com/libuv/libuv/issues/2687 PR-URL: https://github.com/libuv/libuv/pull/2688 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
#
66632e7a |
| 24-Feb-2020 |
erw7 |
build,cmake: Change installation location on MinGW MinGW prefers a POSIX like file system hierarchy. Therefore, it is appropriate that the installation destination is the same as UNIX.
build,cmake: Change installation location on MinGW MinGW prefers a POSIX like file system hierarchy. Therefore, it is appropriate that the installation destination is the same as UNIX. PR-URL: https://github.com/libuv/libuv/pull/2697 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.34.2, v1.34.1, v1.34.0, v1.33.1, v1.33.0, v1.32.0, v1.31.0 |
|
#
12be29f1 |
| 06-Aug-2019 |
OleksandrKvl |
unix,stream: clear read/write states on close/eof Fixes: https://github.com/libuv/libuv/issues/1798 Refs: https://github.com/libuv/libuv/pull/1825 PR-URL: https://github.com/libuv/li
unix,stream: clear read/write states on close/eof Fixes: https://github.com/libuv/libuv/issues/1798 Refs: https://github.com/libuv/libuv/pull/1825 PR-URL: https://github.com/libuv/libuv/pull/2409 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Co-Authored-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
#
fd0e24d2 |
| 20-Jul-2020 |
George Zhao |
build,win: link to user32.lib and advapi32.lib PR-URL: https://github.com/libuv/libuv/pull/2908 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> |
#
40bab5ed |
| 03-Jul-2020 |
David Carlier |
src: build fix for Android pipe2 needs GNU source defined. PR-URL: https://github.com/libuv/libuv/pull/2857 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Coli
src: build fix for Android pipe2 needs GNU source defined. PR-URL: https://github.com/libuv/libuv/pull/2857 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
show more ...
|
#
84305d85 |
| 30-Jun-2020 |
Santiago Gimeno |
udp: fix write_queue cleanup on sendmmsg error This issue manifested on `connected` udp sockets trying to send datagrams to a non-existent server and returning `ECONNREFUSED` because
udp: fix write_queue cleanup on sendmmsg error This issue manifested on `connected` udp sockets trying to send datagrams to a non-existent server and returning `ECONNREFUSED` because an ICMP error was received before the actual sending was performed. PR-URL: https://github.com/libuv/libuv/pull/2899 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
1c22b443 |
| 12-Jun-2020 |
Ben Noordhuis |
linux: read load average from /proc/loadavg It was reported that uv_loadavg() reports the wrong values inside an lxc container. Libuv calls sysinfo(2) but that isn't intercepted
linux: read load average from /proc/loadavg It was reported that uv_loadavg() reports the wrong values inside an lxc container. Libuv calls sysinfo(2) but that isn't intercepted by lxc. /proc/loadavg however is because /proc is a FUSE fs inside the container. This commit makes libuv try /proc/loadavg first and fall back to sysinfo(2) in case /proc isn't mounted. This commit is very similar to commit 3a1be725 ("linux: read free/total memory from /proc/meminfo") from April 2019. Fixes: https://github.com/nodejs/node/issues/33791 PR-URL: https://github.com/libuv/libuv/pull/2876 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
#
2967557b |
| 08-Jun-2020 |
Alexander Tokmakov |
build: link libkvm on netbsd only PR-URL: https://github.com/libuv/libuv/pull/2875 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> |
#
1c976110 |
| 13-May-2020 |
gengjiawen |
build: test on more platforms via QEMU in CI This commit runs the test suite via QEMU on GitHub Actions on a variety of platforms. Fixes: https://github.com/libuv/libuv/issues/2
build: test on more platforms via QEMU in CI This commit runs the test suite via QEMU on GitHub Actions on a variety of platforms. Fixes: https://github.com/libuv/libuv/issues/2842 PR-URL: https://github.com/libuv/libuv/pull/2846 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
be0e957f |
| 28-Apr-2020 |
Bartosz Sosnowski |
build, win: add long path aware manifest Adds manifest file that makes the test runner work with long filenames when those are enabled in the system. PR-URL: https://github.com/
build, win: add long path aware manifest Adds manifest file that makes the test runner work with long filenames when those are enabled in the system. PR-URL: https://github.com/libuv/libuv/pull/2789 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
e1180a64 |
| 28-Apr-2020 |
Bartosz Sosnowski |
build: remove unnessesary MSVC warnings Removes warnings W4100, W4127, W4201, W4206, W4210, W4232, W4456, W4457, W4459, W4706 and W4996 when building with MSVC. PR-URL: https://
build: remove unnessesary MSVC warnings Removes warnings W4100, W4127, W4201, W4206, W4210, W4232, W4456, W4457, W4459, W4706 and W4996 when building with MSVC. PR-URL: https://github.com/libuv/libuv/pull/2777 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
6b3df057 |
| 22-Mar-2020 |
erw7 |
build,cmake: fix compilation on old MinGW _WIN32_WINNT specifies the minimum version of the operating system supported by the code, so change it to the minimum version supported by l
build,cmake: fix compilation on old MinGW _WIN32_WINNT specifies the minimum version of the operating system supported by the code, so change it to the minimum version supported by libuv. If _WIN32_WINNT=0x0600, PSAPI_VERSION=1 is set and it is necessary to link psapi, so it adds psapi unconditionally to the linked library. Fixes: https://github.com/libuv/libuv/issues/2742 Refs: https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=vs-2019 PR-URL: https://github.com/libuv/libuv/pull/2748 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
#
13886c52 |
| 22-Apr-2020 |
twosee |
build,android: fix typo PR-URL: https://github.com/libuv/libuv/pull/2798 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
build,android: fix typo PR-URL: https://github.com/libuv/libuv/pull/2798 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
#
e15a3c45 |
| 06-Apr-2020 |
Ben Noordhuis |
build: make cmake build benchmarks PR-URL: https://github.com/libuv/libuv/pull/2771 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
build: make cmake build benchmarks PR-URL: https://github.com/libuv/libuv/pull/2771 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
#
53caf044 |
| 14-Mar-2020 |
Santiago Gimeno |
test: add a bunch of ASSERT macros To make the debugging of test issues easier. The following integer macros are added: `ASSERT_EQ(a, b)`, `ASSERT_GE(a, b)`, `ASSERT_GT(a,
test: add a bunch of ASSERT macros To make the debugging of test issues easier. The following integer macros are added: `ASSERT_EQ(a, b)`, `ASSERT_GE(a, b)`, `ASSERT_GT(a, b)`, `ASSERT_LE(a, b)`, `ASSERT_LT(a, b)` and `ASSERT_NE(a, b)`. And its corresponding unsigned integer macros: `ASSERT_UINT64_EQ(a, b)`, `ASSERT_UINT64_GE(a, b)`, `ASSERT_UINT64_GT(a, b)`, `ASSERT_UINT64_LE(a, b)`, `ASSERT_UINT64_LT(a, b)` and `ASSERT_UINT64_NE(a, b)`. Also these macros for `NULL` and pointer checks: `ASSERT_NULL(a)`, `ASSERT_NOT_NULL(a)`, `ASSERT_PTR_EQ(a, b)` and `ASSERT_PTR_NE(a, b)`. And finally these macros for strings and buffers: `ASSERT_STR_EQ(a, b)`/`ASSERT_STR_NEQ(a, b)` that use the `strcmp()` call. `ASSERT_MEM_EQ(a, b)`/`ASSERT_MEM_NEQ(a, b)` and `ASSERT_MEM_HEX_EQ(a, b)`/`ASSERT_MEM_HEX_NEQ(a, b)` that use the `memcmp()` call. The former, prints the data in string format and the latter in hex format. These macros are used in the following way: ```c ASSERT_EQ(UV_EINVAL, uv_loop_close(&loop)); ``` With a sample output that would be as follows: ``` Assertion failed in test/test-loop-close.c on line 44: `UV_EINVAL == uv_loop_close(&loop)` (-22 == -16) ``` To view multiples examples if their use, the `test-ipc.c` file has been modified to use these macros. The `_ISOC99_SOURCE` is defined to support `inttypes.h` in `z/OS`. PR-URL: https://github.com/libuv/libuv/pull/2739 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
#
c1043116 |
| 13-Mar-2020 |
Richard Lau |
build: fix z/OS cmake build - Correct CMAKE_SYSTEM_NAME. - Exclude pthread lib on z/OS. - Remove deleted src/unix/pthread-barrier.c. - Set LIBPATH for shared library test.
build: fix z/OS cmake build - Correct CMAKE_SYSTEM_NAME. - Exclude pthread lib on z/OS. - Remove deleted src/unix/pthread-barrier.c. - Set LIBPATH for shared library test. PR-URL: https://github.com/libuv/libuv/pull/2737 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
104255f5 |
| 06-Mar-2020 |
Jesse Gorzinski |
build: ibmi support for cmake PR-URL: https://github.com/libuv/libuv/pull/2729 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
build: ibmi support for cmake PR-URL: https://github.com/libuv/libuv/pull/2729 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Kevin Adler <kadler@us.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
#
742e0ba7 |
| 06-Mar-2020 |
Jesse Gorzinski |
build: add aix-common.c for AIX cmake build PR-URL: https://github.com/libuv/libuv/pull/2731 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.c
build: add aix-common.c for AIX cmake build PR-URL: https://github.com/libuv/libuv/pull/2731 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
show more ...
|
#
288a0672 |
| 18-Feb-2020 |
erw7 |
win,tty: Added set cursor style to CSI sequences PR-URL: https://github.com/libuv/libuv/pull/1884 Refs: https://github.com/libuv/libuv/issues/1874 Co-authored-by: Bert Belder <bertbe
win,tty: Added set cursor style to CSI sequences PR-URL: https://github.com/libuv/libuv/pull/1884 Refs: https://github.com/libuv/libuv/issues/1874 Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
show more ...
|
#
c07a7c6c |
| 28-Feb-2020 |
Ben Noordhuis |
build: fix android cmake build, build missing file Commit f261d04d ("android: enable getentropy on Android >= 28") didn't add random-getentropy.c to the set of files to build on Android.
build: fix android cmake build, build missing file Commit f261d04d ("android: enable getentropy on Android >= 28") didn't add random-getentropy.c to the set of files to build on Android. This commit rectifies that. Fixes: https://github.com/libuv/libuv/issues/2702 PR-URL: https://github.com/libuv/libuv/pull/2704 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
018363a1 |
| 13-Oct-2019 |
Isabella Muerte <63051+slurps-mad-rips@users.noreply.github.com> |
build,cmake: improve buil experience * Add two policies to reduce "regex" if statements * Add CMAKE_MODULE_PATH for custom CMake modules * Remove hard-coded C89 flag * C compiler
build,cmake: improve buil experience * Add two policies to reduce "regex" if statements * Add CMAKE_MODULE_PATH for custom CMake modules * Remove hard-coded C89 flag * C compiler extensions are enabled via CMake * The C standard minimum of C90 is now required (As C89 was never an international standard) * CMAKE_C_VISIBILITY_PRESET is now used to set symbols to hidden instead of a hard-coded compiler flag * Add (unused) LIBUV_BUILD_BENCH option This will allow #1886 to be implemented in a later commit * Add compiler flag checks for gcc-style warnings This allows more compilers to be used with the same compiler settings * Move uv_test_sources to be under the LIBUV_BUILD_TESTS check This clears up a lot of CMakeLists.txt file to allow us to work on the "core" of the project. We will eventually be able to move all the tests to tests/CMakeLists.txt * Make the compiler flag checks more readable * Fix indentation of test sources per request * Fix target_include_directories when installing versus building * Improve performance for unix when creating the libuv.pc.in file * Improve performance when setting `UV_VERSION_MAJOR` * Fix typo in lint-no-unused-parameter generator expression * Fix clang-cl detection on newer CMake versions * Fix targeting newer windows versions * Fix building under Windows with Visual Studio Generator PR-URL: https://github.com/libuv/libuv/pull/2504 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
show more ...
|