mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -05:00
b55451b178
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 |
||
---|---|---|
.. | ||
benchmarks | ||
ops | ||
polyfills | ||
build.rs | ||
Cargo.toml | ||
clippy.toml | ||
global.rs | ||
lib.rs | ||
polyfill.rs | ||
README.md |
deno_node
require
and other node related functionality for Deno.