Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
fcd0424
http: server add async dispose
atlowChemi Jun 25, 2023
7a00bda
http2: server add `asyncDispose`
atlowChemi Jun 25, 2023
a9711bb
deps: update acorn to 8.9.0
nodejs-github-bot Jun 18, 2023
c4e8b51
doc: update security release stewards
RafaelGSS Jun 30, 2023
dbca197
test: add missing assertions to test-runner-cli
MoLow Jul 2, 2023
eb4550a
http: null the joinDuplicateHeaders property on cleanup
lpinca Jul 3, 2023
61231c2
doc: fix options order
lpinca Jul 3, 2023
3fc8004
test_runner: fixed `test` shorthands return type
shockerqt Jul 3, 2023
31ec622
src: fix uninitialized field access in AsyncHooks
hybrist Jul 3, 2023
f02e23c
src: deduplicate X509 getter implementations
tniessen Jul 3, 2023
3146327
meta: bump github/codeql-action from 2.3.6 to 2.20.1
dependabot[bot] Jul 3, 2023
0b3fd8e
meta: bump ossf/scorecard-action from 2.1.3 to 2.2.0
dependabot[bot] Jul 3, 2023
c0e025c
meta: bump step-security/harden-runner from 2.4.0 to 2.4.1
dependabot[bot] Jul 3, 2023
609804d
tools: update lint-md-dependencies to rollup@3.26.0
nodejs-github-bot Jul 4, 2023
c77d9c8
tools: update eslint to 8.44.0
nodejs-github-bot Jul 4, 2023
7826d36
meta: bump actions/checkout from 3.5.2 to 3.5.3
dependabot[bot] Jul 5, 2023
535de5a
child_process: support `Symbol.dispose`
MoLow Jul 5, 2023
0b62218
Revert "test: remove test-crypto-keygen flaky designation"
lpinca Jul 5, 2023
0a3ae9f
events: allow safely adding listener to abortSignal
atlowChemi Jul 5, 2023
71da5dc
http2: send RST code 8 on AbortController signal
devm33 Jul 6, 2023
0d544b4
doc: mention git node release prepare
RafaelGSS Jul 6, 2023
616ecf0
doc: clarify transform._transform() callback argument logic
rafasofizada Jul 8, 2023
caccc61
events: fix bug listenerCount don't compare wrapped listener
yuzheng14 Jul 10, 2023
0de99d2
src: remove kEagerCompile for CompileFunction
kvakil Jul 6, 2023
222082d
deps: V8: cherry-pick cb00db4dba6c
kvakil Jul 6, 2023
2713de6
tools: update lint-md-dependencies to rollup@3.26.2
nodejs-github-bot Jul 11, 2023
03b7163
tools: update doc to unist-util-select@5.0.0 unist-util-visit@5.0.0
nodejs-github-bot Jul 11, 2023
5861589
esm: fix emit deprecation on legacy main resolve
aduh95 Jul 11, 2023
627bc92
http2: use addAbortListener
atlowChemi Jul 5, 2023
b5c7634
readline: use addAbortListener
atlowChemi Jul 5, 2023
c44413d
stream: use addAbortListener
atlowChemi Jul 5, 2023
cfeee51
dgram: use addAbortListener
atlowChemi Jul 5, 2023
24eeae3
child_process: use addAbortListener
atlowChemi Jul 5, 2023
33c9cea
lib: use addAbortListener
atlowChemi Jul 5, 2023
bf75a11
dgram: socket add `asyncDispose`
atlowChemi Jul 9, 2023
45c7e5e
net: server add `asyncDispose`
atlowChemi Jul 9, 2023
48f292d
test: move test-net-throttle to parallel
lpinca Jun 29, 2023
fcdcf1a
test: deflake test-net-throttle
lpinca Jun 29, 2023
5c2b200
deps: update acorn to 8.10.0
nodejs-github-bot Jul 12, 2023
eed884b
fs, stream: initial `Symbol.dispose` and `Symbol.asyncDispose` support
MoLow Jun 25, 2023
4ee7f44
deps: upgrade to libuv 1.45.0
santigimeno May 17, 2023
0ed29c0
deps: upgrade to libuv 1.46.0
santigimeno Jul 2, 2023
4b0c098
build: sync libuv header change
gengjiawen Jun 14, 2023
34a9a3c
deps: add missing thread-common.c in uv.gyp
santigimeno Sep 1, 2023
959b0c2
timers: support Symbol.dispose
MoLow Jul 5, 2023
5579177
test: mark test-http-regr-gh-2928 as flaky
joyeecheung Sep 11, 2023
e1098dd
doc: add release key for Ulises Gascon
UlisesGascon Sep 7, 2023
72a7fcc
doc: fix ambiguity in http.md and https.md
an5er Jul 8, 2023
98663a9
tools: run fetch_deps.py with Python 3
richardlau Jul 12, 2023
47be64c
build: do not pass target toolchain flags to host toolchain
tie Jul 12, 2023
1989bcd
src: make BaseObject iteration order deterministic
joyeecheung Jul 12, 2023
6dcba08
deps: update minimatch to 9.0.3
nodejs-github-bot Jul 12, 2023
76c9f35
doc: add atlowChemi to collaborators
atlowChemi Jul 13, 2023
07eac0d
permission: add debug log when inserting fs nodes
RafaelGSS Jul 13, 2023
1e87ce9
test: fix flaky test-string-decode.js on x86
StefanStojanovic Jul 14, 2023
ee024cf
child_process: harden against prototype pollution
LiviaMedeiros Jul 14, 2023
af9064d
deps: update nghttp2 to 1.55.0
nodejs-github-bot Jul 14, 2023
817b59c
permission: fix data types in PrintTree
tniessen Jul 14, 2023
10495ad
doc: expand on squashing and rebasing to land a PR
legendecas Jul 15, 2023
66fb032
util: use `primordials.ArrayPrototypeIndexOf` instead of mutable method
DaisyDogs07 Jul 15, 2023
ef85828
crypto: update root certificates to NSS 3.93
nodejs-github-bot Aug 29, 2023
003f6ba
sea: allow requiring core modules with the "node:" prefix
RaisinTen May 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: upgrade to libuv 1.46.0
Notable changes
- fs: use WTF-8 on Windows: libuv/libuv#2970
- linux: add some more iouring backed fs ops: libuv/libuv#4012

Important bugs fixed
- linux: work around io_uring IORING_OP_CLOSE bug: libuv/libuv#4059
- src: don't run timers if loop is stopped/unref'd: libuv/libuv#4048

PR-URL: #48618
Backport-PR-URL: #49591
Fixes: #48512
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
PR-URL: #48078
  • Loading branch information
santigimeno authored and ruyadorno committed Sep 12, 2023
commit 0ed29c0fa3f276fc8efb6db83fbe9c0cdde8b8a5
1 change: 1 addition & 0 deletions deps/uv/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sphinx:
fail_on_warning: false

build:
os: "ubuntu-22.04"
tools:
python: "3.9"

Expand Down
6 changes: 6 additions & 0 deletions deps/uv/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -542,3 +542,9 @@ Lewis Russell <me@lewisr.dev>
sivadeilra <arlie.davis@gmail.com>
cui fliter <imcusg@gmail.com>
Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Stefan Karpinski <stefan@karpinski.org>
liuxiang88 <94350585+liuxiang88@users.noreply.github.com>
Jeffrey H. Johnson <trnsz@pobox.com>
Abdirahim Musse <33973272+abmusse@users.noreply.github.com>
小明 <7737673+caobug@users.noreply.github.com>
61 changes: 60 additions & 1 deletion deps/uv/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,63 @@
2023.05.19, Version 1.45.0 (Stable)
2023.06.30, Version 1.46.0 (Stable)

Changes since version 1.45.0:

* Add SHA to ChangeLog (Santiago Gimeno)

* misc: update readthedocs config (Jameson Nash)

* test: remove erroneous RETURN_SKIP (Ben Noordhuis)

* android: disable io_uring support (Ben Noordhuis)

* linux: add some more iouring backed fs ops (Santiago Gimeno)

* build: add autoconf option for disable-maintainer-mode (Jameson Nash)

* fs: use WTF-8 on Windows (Stefan Karpinski)

* unix,win: replace QUEUE with struct uv__queue (Ben Noordhuis)

* linux: fs_read to use io_uring if iovcnt > IOV_MAX (Santiago Gimeno)

* ios: fix uv_getrusage() ru_maxrss calculation (Ben Noordhuis)

* include: update outdated code comment (Ben Noordhuis)

* linux: support abstract unix sockets (Ben Noordhuis)

* unix,win: add UV_PIPE_NO_TRUNCATE flag (Ben Noordhuis)

* unix: add loongarch support (liuxiang88)

* doc: add DPS8M to LINKS.md (Jeffrey H. Johnson)

* include: add EUNATCH errno mapping (Abdirahim Musse)

* src: don't run timers if loop is stopped/unref'd (Trevor Norris)

* win: fix -Wpointer-to-int-cast warning (Ben Noordhuis)

* test,win: fix -Wunused-variable warning (Ben Noordhuis)

* test,win: fix -Wformat warning (Ben Noordhuis)

* linux: work around io_uring IORING_OP_CLOSE bug (Ben Noordhuis)

* win: remove unused functions (Ben Noordhuis)

* bench: add bench to check uv_loop_alive (Trevor Norris)

* test: add uv_cancel test for threadpool (Trevor Norris)

* unix: skip prohibited syscalls on tvOS and watchOS (小明)

* unix,fs: make no_pwritev access thread-safe (Santiago Gimeno)

* unix: fix build for lower versions of Android (小明)


2023.05.19, Version 1.45.0 (Stable), 96e05543f53b19d9642b4b0dd73b86ad3cea313e

Changes since version 1.44.2:

Expand Down
3 changes: 2 additions & 1 deletion deps/uv/LINKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* [clearskies_core](https://github.com/larroy/clearskies_core): Clearskies file synchronization program. (C++11)
* [CMake](https://cmake.org) open-source, cross-platform family of tools designed to build, test and package software
* [Cocos-Engine](https://github.com/cocos/cocos-engine): The runtime framework for Cocos Creator editor.
* [Coherence](https://github.com/liesware/coherence/): Cryptographic server for modern web apps.
* [Coherence](https://github.com/liesware/coherence/): Cryptographic server for modern web apps.
* [DPS8M](https://dps8m.gitlab.io): GE ∕ Honeywell ∕ Bull DPS‑8/M and 6180/L68 mainframe simulator.
* [DPS-For-IoT](https://github.com/intel/dps-for-iot/wiki): Fully distributed publish/subscribe protocol.
* [HashLink](https://github.com/HaxeFoundation/hashlink): Haxe run-time with libuv support included.
* [Haywire](https://github.com/kellabyte/Haywire): Asynchronous HTTP server.
Expand Down
3 changes: 2 additions & 1 deletion deps/uv/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

AC_PREREQ(2.57)
AC_INIT([libuv], [1.45.0], [https://github.com/libuv/libuv/issues])
AC_INIT([libuv], [1.46.0], [https://github.com/libuv/libuv/issues])
AC_CONFIG_MACRO_DIR([m4])
m4_include([m4/libuv-extra-automake-flags.m4])
m4_include([m4/as_case.m4])
m4_include([m4/libuv-check-flags.m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects] UV_EXTRA_AUTOMAKE_FLAGS)
AM_MAINTAINER_MODE([enable]) # pass --disable-maintainer-mode if autotools may be unavailable
AC_CANONICAL_HOST
AC_ENABLE_SHARED
AC_ENABLE_STATIC
Expand Down
3 changes: 3 additions & 0 deletions deps/uv/docs/src/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ Error constants

socket type not supported

.. c:macro:: UV_EUNATCH

protocol driver not attached

API
---
Expand Down
54 changes: 49 additions & 5 deletions deps/uv/docs/src/pipe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,61 @@ API

Bind the pipe to a file path (Unix) or a name (Windows).

Does not support Linux abstract namespace sockets,
unlike :c:func:`uv_pipe_bind2`.

Alias for ``uv_pipe_bind2(handle, name, strlen(name), 0)``.

.. note::
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
typically between 92 and 108 bytes.

.. c:function:: int uv_pipe_bind2(uv_pipe_t* handle, const char* name, size_t namelen, unsigned int flags)

Bind the pipe to a file path (Unix) or a name (Windows).

``flags`` must be zero or ``UV_PIPE_NO_TRUNCATE``. Returns ``UV_EINVAL``
for unsupported flags without performing the bind operation.

Supports Linux abstract namespace sockets. ``namelen`` must include
the leading nul byte but not the trailing nul byte.

.. versionadded:: 1.46.0

.. note::
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes, typically between
92 and 108 bytes.
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
typically between 92 and 108 bytes, unless the ``UV_PIPE_NO_TRUNCATE``
flag is specified, in which case an ``UV_EINVAL`` error is returned.

.. c:function:: void uv_pipe_connect(uv_connect_t* req, uv_pipe_t* handle, const char* name, uv_connect_cb cb)

Connect to the Unix domain socket or the named pipe.
Connect to the Unix domain socket or the Windows named pipe.

Does not support Linux abstract namespace sockets,
unlike :c:func:`uv_pipe_connect2`.

Alias for ``uv_pipe_connect2(req, handle, name, strlen(name), 0, cb)``.

.. note::
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
typically between 92 and 108 bytes.

.. c:function:: void uv_pipe_connect2(uv_connect_t* req, uv_pipe_t* handle, const char* name, size_t namelen, unsigned int flags, uv_connect_cb cb)

Connect to the Unix domain socket or the Windows named pipe.

``flags`` must be zero or ``UV_PIPE_NO_TRUNCATE``. Returns ``UV_EINVAL``
for unsupported flags without performing the connect operation.

Supports Linux abstract namespace sockets. ``namelen`` must include
the leading nul byte but not the trailing nul byte.

.. versionadded:: 1.46.0

.. note::
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes, typically between
92 and 108 bytes.
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
typically between 92 and 108 bytes, unless the ``UV_PIPE_NO_TRUNCATE``
flag is specified, in which case an ``UV_EINVAL`` error is returned.

.. c:function:: int uv_pipe_getsockname(const uv_pipe_t* handle, char* buffer, size_t* size)

Expand Down
29 changes: 25 additions & 4 deletions deps/uv/include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ extern "C" {
#include <stdio.h>
#include <stdint.h>

/* Internal type, do not use. */
struct uv__queue {
struct uv__queue* next;
struct uv__queue* prev;
};

#if defined(_WIN32)
# include "uv/win.h"
#else
Expand Down Expand Up @@ -150,6 +156,7 @@ extern "C" {
XX(EILSEQ, "illegal byte sequence") \
XX(ESOCKTNOSUPPORT, "socket type not supported") \
XX(ENODATA, "no data available") \
XX(EUNATCH, "protocol driver not attached") \

#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \
Expand Down Expand Up @@ -283,13 +290,13 @@ UV_EXTERN int uv_loop_init(uv_loop_t* loop);
UV_EXTERN int uv_loop_close(uv_loop_t* loop);
/*
* NOTE:
* This function is DEPRECATED (to be removed after 0.12), users should
* This function is DEPRECATED, users should
* allocate the loop manually and use uv_loop_init instead.
*/
UV_EXTERN uv_loop_t* uv_loop_new(void);
/*
* NOTE:
* This function is DEPRECATED (to be removed after 0.12). Users should use
* This function is DEPRECATED. Users should use
* uv_loop_close and free the memory manually instead.
*/
UV_EXTERN void uv_loop_delete(uv_loop_t*);
Expand Down Expand Up @@ -459,7 +466,7 @@ struct uv_shutdown_s {
uv_handle_type type; \
/* private */ \
uv_close_cb close_cb; \
void* handle_queue[2]; \
struct uv__queue handle_queue; \
union { \
int fd; \
void* reserved[4]; \
Expand Down Expand Up @@ -801,6 +808,10 @@ inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {

UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);

enum {
UV_PIPE_NO_TRUNCATE = 1u << 0
};

/*
* uv_pipe_t is a subclass of uv_stream_t.
*
Expand All @@ -817,10 +828,20 @@ struct uv_pipe_s {
UV_EXTERN int uv_pipe_init(uv_loop_t*, uv_pipe_t* handle, int ipc);
UV_EXTERN int uv_pipe_open(uv_pipe_t*, uv_file file);
UV_EXTERN int uv_pipe_bind(uv_pipe_t* handle, const char* name);
UV_EXTERN int uv_pipe_bind2(uv_pipe_t* handle,
const char* name,
size_t namelen,
unsigned int flags);
UV_EXTERN void uv_pipe_connect(uv_connect_t* req,
uv_pipe_t* handle,
const char* name,
uv_connect_cb cb);
UV_EXTERN int uv_pipe_connect2(uv_connect_t* req,
uv_pipe_t* handle,
const char* name,
size_t namelen,
unsigned int flags,
uv_connect_cb cb);
UV_EXTERN int uv_pipe_getsockname(const uv_pipe_t* handle,
char* buffer,
size_t* size);
Expand Down Expand Up @@ -1849,7 +1870,7 @@ struct uv_loop_s {
void* data;
/* Loop reference counting. */
unsigned int active_handles;
void* handle_queue[2];
struct uv__queue handle_queue;
union {
void* unused;
unsigned int count;
Expand Down
6 changes: 3 additions & 3 deletions deps/uv/include/uv/darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@
void* cf_state; \
uv_mutex_t cf_mutex; \
uv_sem_t cf_sem; \
void* cf_signals[2]; \
struct uv__queue cf_signals; \

#define UV_PLATFORM_FS_EVENT_FIELDS \
uv__io_t event_watcher; \
char* realpath; \
int realpath_len; \
int cf_flags; \
uv_async_t* cf_cb; \
void* cf_events[2]; \
void* cf_member[2]; \
struct uv__queue cf_events; \
struct uv__queue cf_member; \
int cf_error; \
uv_mutex_t cf_mutex; \

Expand Down
6 changes: 6 additions & 0 deletions deps/uv/include/uv/errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,4 +468,10 @@
# define UV__ENODATA (-4024)
#endif

#if defined(EUNATCH) && !defined(_WIN32)
# define UV__EUNATCH UV__ERR(EUNATCH)
#else
# define UV__EUNATCH (-4023)
#endif

#endif /* UV_ERRNO_H_ */
2 changes: 1 addition & 1 deletion deps/uv/include/uv/linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
int inotify_fd; \

#define UV_PLATFORM_FS_EVENT_FIELDS \
void* watchers[2]; \
struct uv__queue watchers; \
int wd; \

#endif /* UV_LINUX_H */
2 changes: 1 addition & 1 deletion deps/uv/include/uv/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct uv__work {
void (*work)(struct uv__work *w);
void (*done)(struct uv__work *w, int status);
struct uv_loop_s* loop;
void* wq[2];
struct uv__queue wq;
};

#endif /* UV_THREADPOOL_H_ */
Loading