0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 20:25:12 -05:00
denoland-deno/ext
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
..
broadcast_channel 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
cache 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
canvas 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
console 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
cron 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
crypto 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
fetch 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
ffi 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
fs 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
http 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
io 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
kv 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
napi 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
net 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
node fix(ext/node): tls.connect regression (#27707) 2025-01-22 00:24:18 +01:00
os 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
process refactor: add 'deno_process' crate (#27680) 2025-01-22 00:24:16 +01:00
telemetry 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
tls 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
url 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
web 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
webgpu 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
webidl 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
websocket 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00
webstorage 2.1.6 (#27704) 2025-01-17 00:35:01 +01:00