Files
scriptc/packages/runtime/src
Chris Tateandsaboursepideh a7e84cd48c Support SNICallback in tls.createServer
tls.createServer({ cert, key, SNICallback }) hands each ClientHello's
servername to the callback and serves the SecureContext it answers,
synchronously or later, or the default cert and key when it answers none.
An error answer closes that connection. This uses the SNI handling that
http2.createSecureServer already has. A callback expression with side
effects, or SNICallback combined with ALPNProtocols, minVersion, maxVersion
or the other options the runtime walk reads, fails with SC2020.

A tls.connect or https.request client whose peer closes or resets the
connection before the handshake completes now fails with Node's ECONNRESET
"Client network socket disconnected before secure TLS connection was
established" instead of closing without an error.

Refs #1438

Co-authored-by: saboursepideh <25549001+saboursepideh@users.noreply.github.com>
2026-10-21 13:56:07 -05:00
..
2026-10-21 09:13:12 -05:00
2026-10-20 08:57:09 -05:00
2026-10-20 18:16:00 -05:00
2026-10-20 09:52:32 -05:00
2026-10-20 00:21:45 -05:00
2026-10-20 09:52:32 -05:00
2026-10-18 03:52:20 -05:00
2026-10-18 03:52:20 -05:00
2026-10-07 19:07:02 -05:00
2026-10-19 07:55:06 -05:00
2026-10-13 19:48:11 -05:00
2026-10-18 01:06:58 -05:00
2026-10-14 17:27:02 -05:00
2026-10-20 12:55:55 -05:00
2026-10-20 17:01:18 -05:00
2026-10-21 13:04:07 -05:00
2026-10-21 13:04:07 -05:00
2026-10-21 09:13:12 -05:00
2026-10-20 19:05:22 -05:00
2026-10-21 13:04:07 -05:00
2026-10-19 07:55:06 -05:00
2026-10-20 09:06:59 -07:00
2026-10-20 09:00:02 -05:00
2026-10-19 07:55:06 -05:00
2026-10-19 17:17:48 -05:00
2026-10-19 07:55:06 -05:00
2026-10-20 21:52:19 -05:00
2026-10-14 17:27:02 -05:00
2026-10-17 17:57:22 -05:00