0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 23:31:24 -05:00
denoland-deno/tests/unit_node
Yoshiya Hinosawa b4ea2fdf8d
fix(ext/node): tls.connect regression (#27707)
The TLS start sequence has been broken since #26661 because of the way
how we wrap TCP handle to create TLS handle.

#26661 introduced happy-eyeballs algorithm and some connection could be
dropped because of happy-eyeball attempt timeout. The current
implementation doesn't consider that case and it could start TLS
handshake with timed out TCP connection. That caused #27652 .

This PR fixes it by changing the initialization steps. Now `wrapHandle`
of TLSSocket set up `afterConnectTls` callback in TCP handle, and
`afterConnect` of TCP handle calls it at `connect` event timing if it
exists. This avoids starting TLS session with timed out connection.

closes #27652

(cherry picked from commit b55451b178)
2025-01-22 00:24:18 +01:00
..
_fs fix(ext/node): add chown method to FileHandle class (#27638) 2025-01-16 23:32:12 +01:00
crypto chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
internal chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
testdata fix(ext/crypto): support md4 digest algorithm (#25656) 2024-09-16 11:04:40 +00:00
_test_utils.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
assert_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
assertion_error_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
async_hooks_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
buffer_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
child_process_test.ts fix(node): Prevent node:child_process from always inheriting the parent environment (#27343) (#27340) 2025-01-16 23:32:10 +01:00
cluster_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
console_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
dgram_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
domain_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
events_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
fetch_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
fs_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
http2_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
http_test.ts fix(ext/node): propagate socket error to client request object (#27678) 2025-01-22 00:24:12 +01:00
inspector_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
module_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
net_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
os_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
path_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
perf_hooks_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
process_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
punycode_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
querystring_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
readline_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
repl_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
stream_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
string_decoder_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
timers_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
tls_test.ts fix(ext/node): tls.connect regression (#27707) 2025-01-22 00:24:18 +01:00
tty_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
util_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
v8_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
vm_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
wasi_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
worker_threads_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
zlib_test.ts chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00