Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.x] Update libuv to 1.27.0 #27728

Closed
wants to merge 221 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
6a5d42e
test: add fs.watchFile() + worker.terminate() test
addaleax Jun 6, 2018
bc7449c
doc: add Note of options.stdio into child_process
koh110 Mar 12, 2019
f7b03bd
http2: delete unused enum in node_http2.h
gengjiawen Mar 16, 2019
0f4f22c
doc: condense LTS material in Collaborator Guide
Trott Mar 17, 2019
4ba8ce4
doc: remove How Does LTS Work section from Collaborator Guide
Trott Mar 17, 2019
64c3e7d
test: optimize test-http2-large-file
Trott Mar 18, 2019
d7cdf8c
doc: remove discord community
aymen94 Mar 20, 2019
8916dd5
benchmark: replace deprecated and eliminate var in buffer-from.js
gengjiawen Mar 11, 2019
b9ac6d7
doc: fix comma of the list in worker_threads.md
nodejh Mar 21, 2019
3a60dfa
build: use Xenial and gcc 6 on Travis
richardlau Mar 17, 2019
e4cb24e
build: temporarily don't run tests on Travis
richardlau Mar 22, 2019
2f82636
build: restore running tests on Travis
richardlau Mar 22, 2019
fa22a1c
test: fix test-console-stdio-setters to test setters
Trott Mar 20, 2019
5790e49
test: complete console.assert() coverage
Trott Mar 20, 2019
9541302
doc: change error message to 'not defined'
MohammedEssehemy Mar 22, 2019
46742f4
doc: edit LTS material in Collaborator Guide
Trott Mar 21, 2019
4a4e1f4
trace_events: remove usage of require('util')
dnlup Mar 20, 2019
2b9c492
tools, icu: actually failover if there are multiple URLs
srl295 Oct 17, 2018
cd1939f
deps: icu 63.1 bump (CLDR 34)
srl295 Oct 17, 2018
9e99e3e
fs,net: standardize `pending` stream property
addaleax Nov 3, 2018
3f3f833
deps: upgrade to libuv 1.24.0
cjihrig Nov 13, 2018
a0a3095
readline: add support for async iteration
TimothyGu Oct 27, 2018
4cf5708
test: test TLS client authentication
sam-github Oct 12, 2017
8e56a12
querystring: remove eslint-disable
cjihrig Dec 12, 2018
e5b7eb7
build: add a space to clarify skipping crypto msg
danbev Dec 13, 2018
f145187
src: schedule destroy hooks in BeforeExit early during bootstrap
joyeecheung Dec 13, 2018
2a225a2
test: add signal check to test-esm-cjs-main
Trott Dec 16, 2018
da25605
deps: upgrade to libuv 1.24.1
cjihrig Dec 16, 2018
da5ed84
test: verify input flags
BridgeAR Dec 6, 2018
a8cbe4d
events: simplify stack compare function
BridgeAR Nov 18, 2018
6993236
src: port GetLoadedLibraries for freebsd
gireeshpunathil Dec 18, 2018
cf06b85
os: use uv_os_gethostname() in hostname()
cjihrig Dec 18, 2018
3421f6a
build: correct fi indentation in Makefile
danbev Dec 18, 2018
330fce4
tools: update certdata.txt
sam-github Dec 18, 2018
7292ed3
crypto: update root certificates
sam-github Dec 18, 2018
451d811
doc: describe root cert update process
sam-github Dec 18, 2018
f37cef3
doc: revise "Breaking Changes and Deprecations"
Trott Dec 18, 2018
150e02f
test: add hasCrypto check to common flags check
danbev Dec 20, 2018
918e8b1
test: remove Files: comment processing from Python test runner
Trott Dec 22, 2018
f6b8469
test: mark test-trace-events-api-worker-disabled flaky
Trott Dec 23, 2018
a96e6bd
tools: update ESLint to 5.11.0
cjihrig Dec 23, 2018
51f440f
test: fix test-tls-session-timeout
Trott Dec 23, 2018
0933bcf
deps: upgrade npm to 6.5.0
Nov 29, 2018
68b51b3
doc: fix NAPI typo
DaAitch Dec 25, 2018
16e2f7e
test: refactor test-esm-namespace.mjs
Trott Dec 19, 2018
958b97f
net: check for close on stream, not parent
davedoesdev Dec 13, 2018
48bdb19
dns: fix TTL value for AAAA replies to `resolveAny()`
addaleax Dec 22, 2018
1fe0cc4
src: do not leak NodeTraceStateObserver
addaleax Dec 22, 2018
9fb8682
doc: revise "Breaking Changes to Internal Elements"
Trott Dec 23, 2018
2b24fc4
test: refactor stdio handling in test-esm-cjs-main
richardlau Dec 21, 2018
3f155bf
util: simplify code
kkty Dec 21, 2018
7a7c913
doc: link and expand --tls-cipher-list docs
sam-github Dec 21, 2018
63b978a
doc: describe TLS session resumption
sam-github Dec 21, 2018
e33cf1d
test: mark two tests as flaky in AIX
gireeshpunathil Dec 19, 2018
8635724
child_process: simplify argument handling
cjihrig Dec 23, 2018
2d1aaf0
tools: update ESLint to 5.11.1
cjihrig Dec 27, 2018
4427e5a
tools: enable no-useless-catch lint rule
cjihrig Dec 27, 2018
721e9cf
lib: simplify several debug() calls
cjihrig Dec 27, 2018
01723ad
benchmark: fix net-wrap-js-stream-passthrough
Trott Dec 29, 2018
b49935a
test: regression test for uv threadpool congestion
gireeshpunathil Sep 26, 2018
a9b6aea
util: fix util.inspect with proxied function
starkwang Dec 28, 2018
522d8eb
test: remove try/catch in common.isMainThread
Trott Dec 28, 2018
0c5972f
test: slightly refactor test-child-process-execsync
lundibundi Dec 26, 2018
979a397
win, build: fix building addons on Windows
bzoz Dec 18, 2018
7fa2a1a
tools: replace NULL with nullptr
juanarbol Dec 22, 2018
eb18124
doc: include license for src/large_pages in LICENSE
ryzokuken Dec 28, 2018
baa1ceb
src: remove unused variable from string_search.h
addaleax Dec 19, 2018
3ded5a0
crypto: add crypto/keys to cannotUseCache
danbev Dec 27, 2018
2987c96
test: mark test-util-callbackify flaky on AIX
Trott Dec 30, 2018
a8f934c
test: remove unused --expose-native-as V8 flag
peterwmwong Dec 29, 2018
4b21790
repl: indicate if errors are thrown or not
BridgeAR Dec 28, 2018
589f9e8
test: make sure tmpdir is created before using it
joyeecheung Dec 26, 2018
f2d2ba9
test: set umask explicitly
i8-pi Dec 25, 2018
3d0421a
build: fix Windows shared lib build
richardlau Dec 21, 2018
2d9e52d
lib,test: remove lib/internal/test/unicode.js
Trott Jan 1, 2019
757cf4d
doc: fs.mkdir('/') throws EPERM on Windows
coreyfarrell Jan 4, 2019
413651d
test: fix test-benchmark-zlib
Trott Jan 6, 2019
ff0defb
src: remove unused method declaration
bnoordhuis Jan 3, 2019
f8d6e3f
test: http2 origin length ERR_HTTP2_ORIGIN_LENGTH
fshaikh Dec 31, 2018
8b872e5
tools: update ESLint to 5.12.0
cjihrig Jan 4, 2019
4301e5e
test: fix test-tls-securepair-client
Trott Dec 26, 2018
166a61a
test: move test-tls-securepair-client out of pummel
Trott Dec 26, 2018
5bd6fe7
lib: support overriding http\s.globalAgent
illBeRoy Dec 21, 2018
c6935e7
doc: fix process.stdin example
addaleax Jan 4, 2019
6381452
src: trace_events: fix race with metadata events
ofrobots Dec 27, 2018
294e567
test: remove redundant fchmod test
ZYSzys Dec 30, 2018
39a266b
doc: fix heading in cpp style guide
kkty Jan 1, 2019
f6f7dbc
test: tune test-uv-threadpool-schedule
Trott Jan 6, 2019
32c7038
doc: use lowercase for zlib
Trott Jan 6, 2019
69568a0
test: more tests for internal/util/types
ZYSzys Dec 26, 2018
ec10eaf
doc: update benchmark doc
kkty Jan 6, 2019
678962e
tls: do not confuse TLSSocket and Socket
sam-github Dec 19, 2018
769736c
doc: clarify timing of socket.connecting
sam-github Jan 4, 2019
8ae414e
doc: add clarification for exception behaviour
mhdawson Jan 4, 2019
7964746
doc: add history to http.request.setTimeout()
jbunton-atlassian Dec 19, 2018
0336985
test: fix test/pummel/test-fs-largefile.js
Trott Jan 7, 2019
5ecd765
test: fix test/pummel/test-fs-watch-file.js
Trott Jan 8, 2019
a3e8b55
test: fix test/pummel/test-fs-watch-non-recursive.js
Trott Jan 8, 2019
5ab0410
test: refactor test-fs-watch-non-recursive
Trott Jan 8, 2019
bce3960
doc: make sure that calls to .read() are looped
mcollina Jan 7, 2019
2a5d85c
test: remove test/pummel/test-http-client-reconnect-bug.js
Trott Jan 8, 2019
73c1a05
test: fix test-net-connect-econnrefused
Trott Jan 8, 2019
65a6ea5
tools: add openssl-cli to macos-firewall.sh
danbev Jan 8, 2019
38b8c19
test: move require('https') to after crypto check
danbev Jan 8, 2019
f19c622
build: add check for empty openssl-fips flag
danbev Jan 8, 2019
c0accb8
url: return backslashes from fileURLToPath on win
Dec 29, 2018
e7e0a1f
tools: update crypo check rule
cjihrig Jan 8, 2019
070dae1
test: improve test coverage of native crypto code
tniessen Jan 7, 2019
46711c7
doc: update `os.networkInterfaces()` example
jvelezpo Jan 9, 2019
c1a47fd
doc: fix the path to postMessage()
mitar Jan 3, 2019
d159b82
tools: lint for use of internalBinding()
cjihrig Jan 8, 2019
55899ef
test: remove unnecessary skipIfWorker()
Trott Jan 10, 2019
67db596
doc: document that stream.on('close') was changed in Node 10
mcollina Jan 9, 2019
ac09717
test: fix test-net-connect-econnrefused (again)
Trott Jan 10, 2019
78e2652
doc: fix `napi_open_callback_scope` description
DaAitch Jan 6, 2019
7090437
doc: fix sorting in buffer.md
vsemozhetbyt Jan 13, 2019
6fde094
http2: add test case for goaway
antsmartian Nov 3, 2018
1e8fe28
test: check for tls renegotiation errors
sam-github Jan 10, 2019
4c0a5c6
test: rework ephemeralkeyinfo to run in parallel
sam-github Jan 9, 2019
8d53c24
util: fixes type in argument type validation error
aoberoi Dec 18, 2018
6d1ca0b
test: add test for fs.lchmod
ZYSzys Jan 11, 2019
a78be87
doc: add TLSSocket.isSessionReused() docs
sam-github Jan 9, 2019
b9c4b79
inspector, test: verify reported console message
eugeneo Jan 11, 2019
b82f65f
test: refactor pummel/test-keep-alive
Trott Jan 14, 2019
3d13787
test: refactor pummel/test-net-connect-econnrefused
Trott Jan 14, 2019
d5d085c
test: refactor pummel/test-net-many-clients
Trott Jan 14, 2019
cd51ddd
test: refactor pummel/test-net-pingpong
Trott Jan 14, 2019
a61e260
doc: add metadata about ecdh curve options
sam-github Jan 14, 2019
2e9612f
test: fix test-repl timeout and tmpdir refresh
mscdex Jan 9, 2019
c4d09db
doc: add Rich back to TSC list
mhdawson Jan 16, 2019
6d73790
test: add check for wrk to test-keep-alive
Trott Jan 15, 2019
4e9501b
test: refactor min() in test-hash-seed
Trott Jan 15, 2019
8ea6b89
test: prepare test-hash-seed for CI
Trott Jan 15, 2019
f3e4069
doc: fix typo in Buffer API
H1Gdev Jan 17, 2019
98669a2
test: do not use uninitialized memory in common flags check
addaleax Jan 13, 2019
84fe054
test: use fipsMode instead of common.hasFipsCrypto
danbev Jan 15, 2019
f5d1859
test: improve code coverage for i18n
mhdawson Jan 10, 2019
bd3ca97
doc: add a note to `buf.fill()` description
vsemozhetbyt Jan 17, 2019
f5ee585
test: relax chunk count expectations
gireeshpunathil Jan 9, 2019
df04d3b
tls: make tls.connect() accept a timeout option
lpinca Jan 15, 2019
eb3b516
doc: correct my wrong note about buf.fill()
vsemozhetbyt Jan 19, 2019
58ecc3d
http: reuse noop function in socketOnError()
cjihrig Jan 18, 2019
c61da20
doc: reword stream docs to clarify that decodeStrings encodes strings
dgholz Jan 12, 2019
cfd501e
tools: update ESLint to 5.12.1
cjihrig Jan 18, 2019
d795b1a
test: use stronger curves for keygen
danbev Jan 16, 2019
463b6e5
test: changed function to arrow function
Jan 11, 2019
fade220
tools: improve valgrind support
addaleax Dec 30, 2018
d30ea03
http: make ClientRequest#setTimeout() noop at end
timdp Jan 16, 2019
9e3ef92
build: do not lint python scripts under test/fixtures
joyeecheung Jan 22, 2019
ba1660d
build: remove erroneous duplicate declaration from node_inspector.gypi
refack Jan 19, 2019
459f6a1
test: replace common.PORT with `0` in https renegotiation test
Trott Jan 21, 2019
0f45dd5
test: remove potential race condition in https renegotiation test
Trott Jan 21, 2019
29ed864
test: revoke flaky designation for tests
gireeshpunathil Jan 21, 2019
6e5c208
http2: allow fully synchronous `_final()`
addaleax Jan 21, 2019
ef14709
events: show inspected error in uncaught 'error' message
addaleax Jan 21, 2019
f71c55b
src: remove outdated `Neuter()` call in `node_buffer.cc`
addaleax Jan 13, 2019
a4da17a
build: remove AIX/ppc (32bit) dead code
refack Jan 15, 2019
02eb75d
test: add stdio checks to cp-exec-maxBuffer
Fishrock123 Dec 11, 2018
b075fda
child_process: truncate output when maxBuffer is exceeded
Fishrock123 Dec 11, 2018
db64dae
crypto: add crypto modules to cannotUseCache
danbev Jan 21, 2019
043b9be
test: fix pummel/test-exec
Trott Jan 24, 2019
f609f16
doc: add note regarding pushing release tags
MylesBorins Jan 18, 2019
cf4897d
test: remove known_issues/test-cluster-bind-privileged-port
Trott Jan 22, 2019
0a48ddd
doc: simplify process.binding() deprecation message
Trott Jan 23, 2019
13ee984
test: remove common.isOSXMojave
Trott Jan 23, 2019
20355c3
doc: clarify what dns.setResolvers() affects
sam-github Jan 18, 2019
4c06433
repl: improve doc for disabling REPL history on Windows
ralish Jan 23, 2019
3f0bc59
test: fix sequential/test-performance delay
apapirovski Jan 25, 2019
c7e7089
doc: remove outdated s_client information in tls.md
Trott Jan 24, 2019
1d75e69
doc: fix file extension on ESM file example
ewhitebloom Jan 25, 2019
802661a
test: remove unused uncaughtException handler
addaleax Jan 22, 2019
b04c219
perf_hooks: clean up GC listeners
addaleax Jan 22, 2019
34f6b96
src: fix macro duplicate declaration in env.h
gengjiawen Jan 25, 2019
682cedd
build: make configure.py compatible with python 3
thefourtheye Jan 19, 2019
faf45a7
build: make compress_json python3 compatible
thefourtheye Jan 19, 2019
58b23f9
tools: make mkssldef.py Python 3 compatible
thefourtheye Jan 19, 2019
1a0bb27
doc: fix http.Agent timeout option description
lpinca Jan 14, 2019
b5a641f
test: rewrite fs {f}utimes test file
Fishrock123 Jan 23, 2019
1350d3c
tools: make test.py Queue part Python 3 compatible
gengjiawen Jan 25, 2019
854fc5d
src: remove unnecessary call to SSL_get_mode
sam-github Jan 25, 2019
5ebdb9d
doc: revise breaking changes material in COLLABORATOR_GUIDE
Trott Jan 27, 2019
341abab
src: remove unused field in node_http2.h
gengjiawen Jan 26, 2019
1a15fdc
module: use compileFunction over Module.wrap
ryzokuken Jun 28, 2018
dcf9519
module: revert module._compile to original state if module is patched
ryzokuken Nov 7, 2018
ea6a0ad
deps: update ICU to 64.2
ryzokuken Apr 23, 2019
3c8787b
tools: update LICENSE and tools/icu/current_ver.dep
ryzokuken Apr 23, 2019
8d4c15f
deps: backport ICU-20558 to fix Intl crasher
srl295 Apr 25, 2019
cdde908
deps: backport ICU-20575 to fix err/crasher
srl295 Apr 25, 2019
d8b5e62
deps: upgrade npm to v6.5.0
ljharb Dec 26, 2018
a385f2b
deps: upgrade npm to 6.7.0
zkat Jan 29, 2019
29c6530
deps: upgrade npm to 6.9.0
zkat Apr 5, 2019
ebe51a4
zlib: split JS code as prep for non-zlib-backed streams
addaleax Dec 6, 2018
c5c4a21
deps: add brotli
Hackzzila May 1, 2018
499ed9f
deps,tools: update license-builder.sh and LICENSE
Hackzzila May 2, 2018
aab0da6
zlib: add brotli support
addaleax Nov 27, 2018
15b43e3
benchmark,test: add brotli
addaleax Dec 10, 2018
4048e0d
doc: add documentation for brotli support
addaleax Dec 9, 2018
16478de
test: fix zlib-brotli output assumptions
AdamMajer Jan 25, 2019
a8ad994
deps: update OpenSSL upgrade process
sam-github Mar 1, 2019
c0e4d6e
deps: upgrade openssl sources to 1.1.1b
sam-github Apr 25, 2019
f4c6b25
deps: openssl-1.1.1b no longer packages .gitignore
sam-github Feb 26, 2019
af5d889
deps: add ARM64 Windows support in openssl
shigeki Feb 23, 2019
e9684b1
deps: add s390 asm rules for OpenSSL-1.1.1
shigeki Mar 7, 2018
0620314
deps: update archs files for OpenSSL-1.1.1b
sam-github Apr 25, 2019
5e82b79
tools: add `12.x` to alternative docs versions
richardlau May 12, 2019
a1aedd6
doc,tools: updates for 6.x End-of-Life
richardlau May 14, 2019
915ea2a
test: mark some known flakes
refack Apr 14, 2019
f5c0b84
test: move tick.js from test/async-hooks to test/common
arur Oct 12, 2018
bc4d717
doc: add "tick" function name and argument description
arur Oct 13, 2018
7f5120a
deps: patch to fix *.onion MX query on c-ares
XadillaX Jan 31, 2019
5cd9299
fs: fix infinite loop with async recursive mkdir on Windows
richardlau Apr 13, 2019
5716f23
test: use assert.rejects() and assert.throws()
richardlau Apr 16, 2019
eb59d4e
src: fix race condition in `~NodeTraceBuffer`
addaleax Feb 2, 2019
89dd890
src: extract common sockaddr creation code
danbev Feb 13, 2019
3ac2e3e
test: add test about unencrypted PKCS#8 private key for RSA
sasurau4 Mar 25, 2019
865bcef
test: add known_issues test for fs.copyFile()
Trott Mar 27, 2019
45a47b0
deps: upgrade to libuv 1.25.0
cjihrig Jan 18, 2019
4029192
deps: upgrade to libuv 1.26.0
cjihrig Feb 10, 2019
55938e2
test: update test for libuv update
cjihrig Mar 16, 2019
241ff5e
deps: upgrade to libuv 1.27.0
cjihrig Mar 16, 2019
32f479c
os: implement os.release() using uv_os_uname()
cjihrig Jan 21, 2019
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.27.0
Notable changes:
- `statx()` is used to retrieve file birth times on
  supported platforms.
- Improved support of running under Windows safe mode.
- Add support for UDP connected sockets. Several functions
  can now return `UV_EBADF` instead of `UV_EINVAL`.
- SunOS support is improved.

PR-URL: #26707
Reviewed-By: Santiago Gimeno <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
cjihrig authored and MylesBorins committed May 16, 2019

Unverified

The email in this signature doesn’t match the committer email.
commit 241ff5e23f91e995b6984f6e3439301daba60dfb
2 changes: 2 additions & 0 deletions deps/uv/AUTHORS
Original file line number Diff line number Diff line change
@@ -369,3 +369,5 @@ Kevin Adler <[email protected]>
Stephen Belanger <[email protected]>
yeyuanfeng <[email protected]>
erw7 <[email protected]>
Thomas Karl Pietrowski <[email protected]>
evgley <[email protected]>
6 changes: 4 additions & 2 deletions deps/uv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -153,6 +153,7 @@ set(uv_test_sources
test/test-tty.c
test/test-udp-alloc-cb-fail.c
test/test-udp-bind.c
test/test-udp-connect.c
test/test-udp-create-socket-early.c
test/test-udp-dgram-too-big.c
test/test-udp-ipv6.c
@@ -351,7 +352,8 @@ target_link_libraries(uv_a ${uv_libraries})
if(BUILD_TESTING)
include(CTest)
add_executable(uv_run_tests ${uv_test_sources})
target_compile_definitions(uv_run_tests PRIVATE ${uv_defines})
target_compile_definitions(uv_run_tests
PRIVATE ${uv_defines} USING_UV_SHARED=1)
target_compile_options(uv_run_tests PRIVATE ${uv_cflags})
target_include_directories(uv_run_tests PRIVATE include)
target_link_libraries(uv_run_tests uv ${uv_test_libraries})
@@ -383,7 +385,7 @@ if(UNIX)

install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(FILES LICENSE ${CMAKE_CURRENT_BINARY_DIR}/libuv.pc
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libuv.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(TARGETS uv LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS uv_a ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
59 changes: 59 additions & 0 deletions deps/uv/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
2019.03.17, Version 1.27.0 (Stable), a4fc9a66cc35256dbc4dcd67c910174f05b6daa6

Changes since version 1.26.0:

* doc: describe unix signal handling better (Vladimír Čunát)

* linux: use statx() to obtain file birth time (Ben Noordhuis)

* src: fill sockaddr_in6.sin6_len when it's defined (Santiago Gimeno)

* test: relax uv_hrtime() test assumptions (Ben Noordhuis)

* build: make cmake install LICENSE only once (Thomas Karl Pietrowski)

* bsd: plug uv_fs_event_start() error path fd leak (Ben Noordhuis)

* unix: fix __FreeBSD_kernel__ typo (cjihrig)

* doc: add note about uv_run() not being reentrant (Ben Noordhuis)

* unix, win: make fs-poll close wait for resource cleanup (Anna Henningsen)

* doc: fix typo in uv_thread_options_t definition (Ryan Liptak)

* win: skip winsock initialization in safe mode (evgley)

* unix: refactor getsockname/getpeername methods (Santiago Gimeno)

* win,udp: allow to use uv_udp_open on bound sockets (Santiago Gimeno)

* udp: add support for UDP connected sockets (Santiago Gimeno)

* build: fix uv_test shared uv Windows cmake build (ptlomholt)

* build: add android-configure scripts to EXTRA_DIST (Ben Noordhuis)

* build: add missing header (cjihrig)

* sunos: add perror() output prior to abort() (Andrew Paprocki)

* test,sunos: disable UV_DISCONNECT handling (Andrew Paprocki)

* sunos: disable __attribute__((unused)) (Andrew Paprocki)

* test,sunos: use unistd.h code branch (Andrew Paprocki)

* build,sunos: better handling of non-GCC compiler (Andrew Paprocki)

* test,sunos: fix statement not reached warnings (Andrew Paprocki)

* sunos: fix argument/prototype mismatch in atomics (Andrew Paprocki)

* test,sunos: test-ipc.c lacks newline at EOF (Andrew Paprocki)

* test: change spawn_stdin_stdout return to void (Andrew Paprocki)

* test: remove call to floor() in test driver (Andrew Paprocki)


2019.02.11, Version 1.26.0 (Stable), 8669d8d3e93cddb62611b267ef62a3ddb5ba3ca0

Changes since version 1.25.0:
24 changes: 20 additions & 4 deletions deps/uv/Makefile.am
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ libuv_la_LDFLAGS = -no-undefined -version-info 1:0:0
libuv_la_SOURCES = src/fs-poll.c \
src/heap-inl.h \
src/idna.c \
src/idna.h \
src/inet.c \
src/queue.h \
src/strscpy.c \
@@ -44,10 +45,12 @@ libuv_la_SOURCES = src/fs-poll.c \
src/version.c

if SUNOS
if GCC
# Can't be turned into a CC_CHECK_CFLAGS in configure.ac, it makes compilers
# on other platforms complain that the argument is unused during compilation.
libuv_la_CFLAGS += -pthreads
endif
endif

if WINNT

@@ -121,11 +124,13 @@ EXTRA_DIST = test/fixtures/empty_file \
docs \
img \
samples \
android-configure \
android-configure-arm \
android-configure-arm64 \
android-configure-x86 \
android-configure-x86_64 \
CONTRIBUTING.md \
LICENSE \
README.md \
checksparse.sh \
vcbuild.bat \
common.gypi \
gyp_uv.py \
@@ -138,14 +143,20 @@ check_PROGRAMS = test/run-tests
if OS390
test_run_tests_CFLAGS =
else
if GCC
test_run_tests_CFLAGS = -Wno-long-long
else
test_run_tests_CFLAGS =
endif
endif

if SUNOS
if GCC
# Can't be turned into a CC_CHECK_CFLAGS in configure.ac, it makes compilers
# on other platforms complain that the argument is unused during compilation.
test_run_tests_CFLAGS += -pthreads
endif
endif

test_run_tests_LDFLAGS =
test_run_tests_SOURCES = test/blackhole-server.c \
@@ -281,6 +292,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
test/test-tty.c \
test/test-udp-alloc-cb-fail.c \
test/test-udp-bind.c \
test/test-udp-connect.c \
test/test-udp-create-socket-early.c \
test/test-udp-dgram-too-big.c \
test/test-udp-ipv6.c \
@@ -320,7 +332,9 @@ test_run_tests_CFLAGS += -D_GNU_SOURCE
endif

if SUNOS
test_run_tests_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
test_run_tests_CFLAGS += -D__EXTENSIONS__ \
-D_XOPEN_SOURCE=500 \
-D_REENTRANT
endif

if OS390
@@ -458,7 +472,9 @@ endif

if SUNOS
uvinclude_HEADERS += include/uv/sunos.h
libuv_la_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
libuv_la_CFLAGS += -D__EXTENSIONS__ \
-D_XOPEN_SOURCE=500 \
-D_REENTRANT
libuv_la_SOURCES += src/unix/no-proctitle.c \
src/unix/sunos.c
endif
2 changes: 1 addition & 1 deletion deps/uv/README.md
Original file line number Diff line number Diff line change
@@ -312,7 +312,7 @@ $ make -C out
The default API level is 24, but a different one can be selected as follows:

```bash
$ source ./android-configure ~/android-ndk-r15b gyp 21
$ source ./android-configure-arm ~/android-ndk-r15b gyp 21
$ make -C out
```

21 changes: 12 additions & 9 deletions deps/uv/configure.ac
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

AC_PREREQ(2.57)
AC_INIT([libuv], [1.26.0], [https://github.com/libuv/libuv/issues])
AC_INIT([libuv], [1.27.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])
@@ -24,16 +24,18 @@ AC_ENABLE_SHARED
AC_ENABLE_STATIC
AC_PROG_CC
AM_PROG_CC_C_O
AS_IF([AS_CASE([$host_os],[openedition*], [false], [true])], [
CC_CHECK_CFLAGS_APPEND([-pedantic])
])
CC_FLAG_VISIBILITY #[-fvisibility=hidden]
CC_CHECK_CFLAGS_APPEND([-g])
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
CC_CHECK_CFLAGS_APPEND([-Wall])
CC_CHECK_CFLAGS_APPEND([-Wextra])
CC_CHECK_CFLAGS_APPEND([-Wno-unused-parameter])
CC_CHECK_CFLAGS_APPEND([-Wstrict-prototypes])
AS_IF([test "x$GCC" = xyes], [
AS_IF([AS_CASE([$host_os], [openedition*], [false], [true])], [
CC_CHECK_CFLAGS_APPEND([-pedantic])
])
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
CC_CHECK_CFLAGS_APPEND([-Wall])
CC_CHECK_CFLAGS_APPEND([-Wextra])
CC_CHECK_CFLAGS_APPEND([-Wno-unused-parameter])
CC_CHECK_CFLAGS_APPEND([-Wstrict-prototypes])
])
# AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12.
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
# autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR.
@@ -50,6 +52,7 @@ AC_CHECK_LIB([rt], [clock_gettime])
AC_CHECK_LIB([sendfile], [sendfile])
AC_CHECK_LIB([socket], [socket])
AC_SYS_LARGEFILE
AM_CONDITIONAL([GCC], [AS_IF([test "x$GCC" = xyes], [true], [false])])
AM_CONDITIONAL([AIX], [AS_CASE([$host_os],[aix*], [true], [false])])
AM_CONDITIONAL([ANDROID], [AS_CASE([$host_os],[linux-android*],[true], [false])])
AM_CONDITIONAL([CYGWIN], [AS_CASE([$host_os],[cygwin*], [true], [false])])
2 changes: 2 additions & 0 deletions deps/uv/docs/src/loop.rst
Original file line number Diff line number Diff line change
@@ -107,6 +107,8 @@ API
or requests left), or non-zero if more callbacks are expected (meaning
you should run the event loop again sometime in the future).
:c:func:`uv_run` is not reentrant. It must not be called from a callback.
.. c:function:: int uv_loop_alive(const uv_loop_t* loop)
Returns non-zero if there are referenced active handles, active
24 changes: 18 additions & 6 deletions deps/uv/docs/src/signal.rst
Original file line number Diff line number Diff line change
@@ -6,7 +6,10 @@

Signal handles implement Unix style signal handling on a per-event loop bases.

Reception of some signals is emulated on Windows:
Windows notes
-------------

Reception of some signals is emulated:

* SIGINT is normally delivered when the user presses CTRL+C. However, like
on Unix, it is not generated when terminal raw mode is enabled.
@@ -24,13 +27,22 @@ Reception of some signals is emulated on Windows:
* Calls to raise() or abort() to programmatically raise a signal are
not detected by libuv; these will not trigger a signal watcher.

.. note::
On Linux SIGRT0 and SIGRT1 (signals 32 and 33) are used by the NPTL pthreads library to
manage threads. Installing watchers for those signals will lead to unpredictable behavior
and is strongly discouraged. Future versions of libuv may simply reject them.

.. versionchanged:: 1.15.0 SIGWINCH support on Windows was improved.

Unix notes
----------

* SIGKILL and SIGSTOP are impossible to catch.

* Handling SIGBUS, SIGFPE, SIGILL or SIGSEGV via libuv results into undefined behavior.

* SIGABRT will not be caught by libuv if generated by `abort()`, e.g. through `assert()`.

* On Linux SIGRT0 and SIGRT1 (signals 32 and 33) are used by the NPTL pthreads library to
manage threads. Installing watchers for those signals will lead to unpredictable behavior
and is strongly discouraged. Future versions of libuv may simply reject them.


Data types
----------

4 changes: 2 additions & 2 deletions deps/uv/docs/src/threading.rst
Original file line number Diff line number Diff line change
@@ -61,13 +61,13 @@ Threads

::

typedef struct uv_process_options_s {
typedef struct uv_thread_options_s {
enum {
UV_THREAD_NO_FLAGS = 0x00,
UV_THREAD_HAS_STACK_SIZE = 0x01
} flags;
size_t stack_size;
} uv_process_options_t;
} uv_thread_options_t;

More fields may be added to this struct at any time, so its exact
layout and size should not be relied upon.
54 changes: 54 additions & 0 deletions deps/uv/docs/src/udp.rst
Original file line number Diff line number Diff line change
@@ -150,6 +150,44 @@ API
:returns: 0 on success, or an error code < 0 on failure.
.. c:function:: int uv_udp_connect(uv_udp_t* handle, const struct sockaddr* addr)
Associate the UDP handle to a remote address and port, so every
message sent by this handle is automatically sent to that destination.
Calling this function with a `NULL` `addr` disconnects the handle.
Trying to call `uv_udp_connect()` on an already connected handle will result
in an `UV_EISCONN` error. Trying to disconnect a handle that is not
connected will return an `UV_ENOTCONN` error.
:param handle: UDP handle. Should have been initialized with
:c:func:`uv_udp_init`.
:param addr: `struct sockaddr_in` or `struct sockaddr_in6`
with the address and port to associate to.
:returns: 0 on success, or an error code < 0 on failure.
.. versionadded:: 1.27.0
.. c:function:: int uv_udp_getpeername(const uv_udp_t* handle, struct sockaddr* name, int* namelen)
Get the remote IP and port of the UDP handle on connected UDP handles.
On unconnected handles, it returns `UV_ENOTCONN`.
:param handle: UDP handle. Should have been initialized with
:c:func:`uv_udp_init` and bound.
:param name: Pointer to the structure to be filled with the address data.
In order to support IPv4 and IPv6 `struct sockaddr_storage` should be
used.
:param namelen: On input it indicates the data of the `name` field. On
output it indicates how much of it was filled.
:returns: 0 on success, or an error code < 0 on failure
.. versionadded:: 1.27.0
.. c:function:: int uv_udp_getsockname(const uv_udp_t* handle, struct sockaddr* name, int* namelen)
Get the local IP and port of the UDP handle.
@@ -247,6 +285,12 @@ API
(``0.0.0.0`` or ``::``) it will be changed to point to ``localhost``.
This is done to match the behavior of Linux systems.
For connected UDP handles, `addr` must be set to `NULL`, otherwise it will
return `UV_EISCONN` error.
For connectionless UDP handles, `addr` cannot be `NULL`, otherwise it will
return `UV_EDESTADDRREQ` error.
:param req: UDP request handle. Need not be initialized.
:param handle: UDP handle. Should have been initialized with
@@ -266,15 +310,25 @@ API
.. versionchanged:: 1.19.0 added ``0.0.0.0`` and ``::`` to ``localhost``
mapping
.. versionchanged:: 1.27.0 added support for connected sockets
.. c:function:: int uv_udp_try_send(uv_udp_t* handle, const uv_buf_t bufs[], unsigned int nbufs, const struct sockaddr* addr)
Same as :c:func:`uv_udp_send`, but won't queue a send request if it can't
be completed immediately.
For connected UDP handles, `addr` must be set to `NULL`, otherwise it will
return `UV_EISCONN` error.
For connectionless UDP handles, `addr` cannot be `NULL`, otherwise it will
return `UV_EDESTADDRREQ` error.
:returns: >= 0: number of bytes sent (it matches the given buffer size).
< 0: negative error code (``UV_EAGAIN`` is returned when the message
can't be sent immediately).
.. versionchanged:: 1.27.0 added support for connected sockets
.. c:function:: int uv_udp_recv_start(uv_udp_t* handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb)
Prepare for receiving data. If the socket has not previously been bound
4 changes: 4 additions & 0 deletions deps/uv/include/uv.h
Original file line number Diff line number Diff line change
@@ -630,7 +630,11 @@ UV_EXTERN int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock);
UV_EXTERN int uv_udp_bind(uv_udp_t* handle,
const struct sockaddr* addr,
unsigned int flags);
UV_EXTERN int uv_udp_connect(uv_udp_t* handle, const struct sockaddr* addr);

UV_EXTERN int uv_udp_getpeername(const uv_udp_t* handle,
struct sockaddr* name,
int* namelen);
UV_EXTERN int uv_udp_getsockname(const uv_udp_t* handle,
struct sockaddr* name,
int* namelen);
Loading