1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 13:00:36 -05:00
denoland-deno/ext/node
Yoshiya Hinosawa b55451b178
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
2025-01-18 00:10:26 +09:00
..
benchmarks chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
ops refactor: add 'deno_process' crate (#27680) 2025-01-17 13:30:14 +01:00
polyfills fix(ext/node): tls.connect regression (#27707) 2025-01-18 00:10:26 +09:00
build.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
Cargo.toml refactor: add 'deno_process' crate (#27680) 2025-01-17 13:30:14 +01:00
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
global.rs fix(ext/node): have process global available in Node context (#27562) 2025-01-08 13:14:57 +09:00
lib.rs refactor: add 'deno_process' crate (#27680) 2025-01-17 13:30:14 +01:00
polyfill.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00

deno_node

require and other node related functionality for Deno.