reito
2baab70a48
test: bad name
2025-02-04 16:39:48 +08:00
reito
32f3e0dbae
src: add comments
2025-02-04 16:39:48 +08:00
reito
2d64fe4a40
test: optimize code
2025-02-04 16:39:48 +08:00
reito
b1fbc5dbb2
test: add test for win uds
2025-02-04 16:39:48 +08:00
reito
62fbd8d1ec
test: add test for win uds
2025-02-04 16:39:48 +08:00
reito
3c56c48a2d
test: add test for win uds
2025-02-04 16:39:48 +08:00
reito
6d62cf562c
test: add test for win uds
2025-02-04 16:39:48 +08:00
reito
a514c513e4
src: fix socket extension, uv_pipe_init_ex
2025-02-04 16:39:48 +08:00
reito
d9df97725a
src: remove cond macro for should use uds pipe
2025-02-04 16:39:48 +08:00
reito
404d3787b5
src: acceptex/connectex get once at init, code review 2
2025-02-04 16:39:48 +08:00
reito
801b2476b8
src: code review
2025-02-04 16:39:48 +08:00
reito
61dd2b5b13
src: use positive words for uds.
2025-02-04 16:39:48 +08:00
reito
823a33b734
src: fix mingw
2025-02-04 16:39:48 +08:00
reito
a74298d8b6
src: refine comments
2025-02-04 16:39:48 +08:00
reito
281cf049fb
src: fix mingw
2025-02-04 16:39:48 +08:00
reito
2254687ad4
src: cond disable on mingw.
2025-02-04 16:39:48 +08:00
reito
ca541f6799
src: getpeername getsockname
2025-02-04 16:39:48 +08:00
reito
260f51cb67
src: fix connectex with iocp bugm, implement end of uds stream
2025-02-04 16:39:48 +08:00
reito
c9ad1f5dee
src: rename uds pipe flag.
2025-02-04 16:39:48 +08:00
reito
e75db5839f
src: handle remote connection reset correctly.
2025-02-04 16:39:48 +08:00
reito
c4694e63e1
src: win pipe add unix domain socket support
2025-02-04 16:39:48 +08:00
Morten Engelhardt Olsen
23632e9104
win: check cwd length before spawning a child process
...
The CreateProcess API on Windows is still not longPathAware,
even if the process itself is. So, if the cwd used for CreateProcess
is too long, then the call fails with a 'INVALID_DIRECTORY' error.
To deal with this, check the length of the cwd and shorten it if it
is longer than MAX_PATH.
2025-01-29 22:51:06 +01:00
Ben Noordhuis
a6ddf41edf
linux: try preadv64/pwritev64 before preadv/pwritev ( #4683 )
...
Fixes: https://github.com/libuv/libuv/issues/4678
Refs: https://github.com/libuv/libuv/issues/4532
2025-01-28 09:27:58 +01:00
Ben Noordhuis
82351168b3
win: lazy-load [GS]etThreadDescription symbols ( #4679 )
...
Said symbols are not by default available on Windows Server 2016 but
libuv can still use them when
api-ms-win-core-processthreads-l1-1-3.dll is present.
Fixes: https://github.com/libuv/libuv/issues/4677
2025-01-24 21:53:22 +01:00
Saúl Ibarra Corretgé
bc19beadbd
docs: fix RTD build
...
Setting the configuration key is now mandatory: https://about.readthedocs.com/blog/2024/12/deprecate-config-files-without-sphinx-or-mkdocs-config/
2025-01-24 14:11:13 +01:00
Saúl Ibarra Corretgé
f15c602bd0
win: fix leak in uv_os_tmpdir
...
Fixes: https://github.com/libuv/libuv/issues/4680
2025-01-24 11:46:16 +01:00
Santiago Gimeno
0f31978c30
Now working on version 1.50.1
2025-01-15 19:11:00 +01:00
Santiago Gimeno
a2ba04f83f
Add SHA to ChangeLog
2025-01-15 19:05:30 +01:00
Santiago Gimeno
8fb9cb9194
2025.01.15, Version 1.50.0 (Stable)
...
Changes since version 1.49.2:
* ci: run macOS and iOS tests also on macOS 14 (Saúl Ibarra Corretgé)
* unix,win: map ENOEXEC errno (Saúl Ibarra Corretgé)
* test: skip multicast join test on ENOEXEC (Saúl Ibarra Corretgé)
* ci: make sure the macOS firewall is disabled (Saúl Ibarra Corretgé)
* darwin,test: squelch EBUSY error on multicast join (Saúl Ibarra
Corretgé)
* build: update minimum cmake to 3.10 (Ben Noordhuis)
* kqueue: use EVFILT_USER for async if available (Jameson Nash)
* unix,win: fix off-by-one in uv_wtf8_to_utf16() (Ben Noordhuis)
* doc: add scala-native-loop to LINKS.md (Julian A Avar C)
* unix: fix build breakage on haiku, openbsd, etc (Jeffrey H. Johnson)
* kqueue: lower overhead in uv__io_check_fd (Andy Pan)
* doc: move cjihrig back to active maintainers (cjihrig)
* build(deps): bump actions/checkout from 3 to 4 (dependabot[bot])
* unix,pipe: fix handling null buffer in uv_pipe_get{sock,peer}name
(Saúl Ibarra Corretgé)
* unix,win: harmonize buffer checking (Saúl Ibarra Corretgé)
* unix,win: add support for detached threads (Juan José Arboleda)
* src: add uv_thread_set/getname() methods (Santiago Gimeno)
* build: fix qemu builds (Ben Noordhuis)
* win: drop support for windows 8 (Ben Noordhuis)
* linux: fix uv_cpu_info() arm cpu model detection (Ben Noordhuis)
* linux: always use io_uring for epoll batching (Ben Noordhuis)
* doc: clarify repeating timer behavior more (Ben Noordhuis)
* unix,win: handle nbufs=0 in uv_udp_try_send (Ben Noordhuis)
* win: use GetQueuedCompletionStatusEx directly (Saúl Ibarra Corretgé)
* win: enable uv_thread_{get,set}name on MinGW (Saúl Ibarra Corretgé)
* win: drop support for the legacy MinGW (Saúl Ibarra Corretgé)
* win,fs: get (most) fstat when no permission (Jameson Nash)
* win: plug uv_fs_event_start memory leak (amcgoogan)
* test: address FreeBSD kernel bug causing NULL path in fsevents (Juan
José Arboleda)
* unix: refactor udp sendmsg code (Ben Noordhuis)
* unix,win: add uv_udp_try_send2 (Ben Noordhuis)
* test: fix flaky flaky udp_mmsg test (Juan José Arboleda)
* build: enable fdsan in Android (Juan José Arboleda)
* test: fix udp-multicast-join for FreeBSD (Juan José Arboleda)
* win: fix leak processing fs event (Saúl Ibarra Corretgé)
* src: set a default thread name for workers (Rafael Gonzaga)
* misc: implement uv_getrusage_thread (Juan José Arboleda)
2025-01-15 19:05:29 +01:00
Juan José
be8eec8c5a
misc: implement uv_getrusage_thread ( #4666 )
...
Refs: https://github.com/libuv/libuv/issues/3119
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
Co-authored-by: James M Snell <jasnell@gmail.com>
2025-01-14 14:50:26 +01:00
Rafael Gonzaga
e59e2a9e49
src: set a default thread name for workers ( #4664 )
2025-01-08 13:58:28 +01:00
Saúl Ibarra Corretgé
ec5a4b54f7
win: fix leak processing fs event
...
Fixes: https://github.com/libuv/libuv/pull/4376#issuecomment-2544728609
2024-12-16 13:58:43 +01:00
Juan José
beebf02cf6
test: fix udp-multicast-join for FreeBSD ( #4655 )
...
Fixes: https://github.com/libuv/libuv/issues/4651
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
2024-12-16 09:05:09 +01:00
Juan José Arboleda
a94f2ad2b7
build: enable fdsan in Android
...
This patch will update Android API in CI to 29 and will set up the fdsan
in the test runner.
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
Fixes: https://github.com/libuv/libuv/issues/4369
2024-12-16 09:01:15 +01:00
Juan José
3d78d121f4
test: fix flaky flaky udp_mmsg test ( #4652 )
...
Replace comparison of `alloc_cb_called` with the total bytes
read (`bytes_read`) to validate the test's correctness.
Fixes: https://github.com/libuv/libuv/issues/4650
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
2024-12-15 20:24:20 +01:00
Ben Noordhuis
e8969bff6c
unix,win: add uv_udp_try_send2
...
Add a version of uv_udp_try_send that can send multiple datagrams.
Uses sendmmsg(2) on platforms that support it (Linux, FreeBSD, macOS),
falls back to a regular sendmsg(2) loop elsewhere.
This work was sponsored by ISC, the Internet Systems Consortium.
2024-12-13 21:52:59 +01:00
Ben Noordhuis
7b4cf04a91
unix: refactor udp sendmsg code
...
Shuffle around and DRY the sendmsg logic in preparation for
uv_udp_try_send2(). NFC barring bugs.
This work was sponsored by ISC, the Internet Systems Consortium.
2024-12-13 21:52:59 +01:00
Juan José
acebb97490
test: address FreeBSD kernel bug causing NULL path in fsevents ( #4649 )
...
This commit documents a FreeBSD kernel issue where uv_fs_event can
receive a NULL filename and updates test-fs-event.c to skip filename
assertions on FreeBSD.
* Bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197695
Refs: https://github.com/libuv/libuv/issues/4606
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
2024-12-13 15:30:17 -05:00
amcgoogan
88201044ed
win: plug uv_fs_event_start memory leak ( #4647 )
...
Co-authored-by: Andrew McGoogan <amcgoogan@cribl.io>
Fixes: https://github.com/nodejs/node/issues/52769
2024-12-13 00:23:36 +01:00
Jameson Nash
72d9abccd7
win,fs: get (most) fstat when no permission ( #4566 )
...
Replaces: https://github.com/libuv/libuv/pull/4504
Fixes: https://github.com/libuv/libuv/issues/1980
Fixes: https://github.com/libuv/libuv/issues/3267
Co-authored-by: Hüseyin Açacak <huseyin@janeasystems.com>
2024-12-12 15:05:53 -05:00
Saúl Ibarra Corretgé
16e6e84dcc
win: drop support for the legacy MinGW ( #4645 )
...
The OG MinGW has been dead for years, MinGW-w64 has taken its place.
2024-12-12 15:59:30 +01:00
Saúl Ibarra Corretgé
7752218db2
fixup!
2024-12-12 15:55:16 +01:00
Saúl Ibarra Corretgé
88baee1a35
fixup!
2024-12-12 15:55:16 +01:00
Saúl Ibarra Corretgé
264bb335af
win: enable uv_thread_{get,set}name on MinGW
...
It supports the API: 93f3505a75/mingw-w64-headers/include/processthreadsapi.h (L358)
2024-12-12 15:55:16 +01:00
Saúl Ibarra Corretgé
6af08fb527
win: use GetQueuedCompletionStatusEx directly
...
It was introduced in Vista, so we can assume it's always there now.
2024-12-10 23:44:29 +01:00
Ben Noordhuis
2494c088f0
unix,win: handle nbufs=0 in uv_udp_try_send ( #4641 )
2024-12-09 21:14:01 +01:00
Ben Noordhuis
467859c2ba
doc: clarify repeating timer behavior more ( #4640 )
...
It was already documented but only in the uv_timer_set_repeat section.
Move it to the toplevel and flesh it out more.
Refs: https://github.com/libuv/libuv/issues/181
Refs: https://github.com/libuv/libuv/discussions/4639
2024-12-08 22:32:49 +01:00
Ben Noordhuis
69bad8201b
linux: always use io_uring for epoll batching ( #4638 )
...
io_uring support was default-disabled because of numerous kernel bugs
but those are all in the sqpoll (file i/o) parts of io_uring.
Batching of epoll_ctl calls through io_uring works fine, is a nice
optimization, and is therefore unconditionally enabled again.
The UV_USE_IO_URING environment variable now only affects sqpoll, and
only when the UV_LOOP_ENABLE_IO_URING_SQPOLL event loop flag is set.
Fixes: https://github.com/libuv/libuv/issues/4616
2024-12-06 00:11:05 +01:00
Ben Noordhuis
c431bc39c3
linux: fix uv_cpu_info() arm cpu model detection ( #4633 )
...
Libuv looks for "Processor" in /proc/cpuinfo but it's been reported
that on at least some Raspberry Pi models, it's called "model name".
Look for both.
Fixes: https://github.com/nodejs/node/issues/56105
2024-12-03 00:31:06 +01:00
Ben Noordhuis
14644080c8
win: drop support for windows 8 ( #4624 )
...
Fixes: https://github.com/libuv/libuv/issues/3889
2024-11-28 22:02:41 +01:00