From 3be70ff43a99125e4e49caaeaf9c6d2be06d9464 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 3 Aug 2025 06:16:03 -0700 Subject: [PATCH] quic: multiple fixups and updates Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/59342 Reviewed-By: Stephen Belanger Reviewed-By: Ethan Arrowood --- configure.py | 13 - doc/api/cli.md | 20 ++ doc/node-config-schema.json | 3 + doc/node.1 | 3 + lib/internal/bootstrap/node.js | 7 + node.gyp | 37 +- node.gypi | 6 - src/node_binding.h | 3 +- src/node_builtins.cc | 5 +- src/node_external_reference.h | 3 +- src/node_metadata.cc | 7 +- src/node_metadata.h | 5 +- src/node_options.cc | 5 +- src/node_options.h | 3 +- src/quic/application.cc | 32 +- src/quic/application.h | 18 +- src/quic/bindingdata.h | 4 +- src/quic/cid.h | 1 - src/quic/data.cc | 33 +- src/quic/data.h | 43 +-- src/quic/endpoint.cc | 14 +- src/quic/endpoint.h | 2 - src/quic/guard.h | 2 +- src/quic/http3.cc | 35 +- src/quic/http3.h | 2 - src/quic/preferredaddress.cc | 17 +- src/quic/preferredaddress.h | 3 +- src/quic/quic.cc | 7 +- src/quic/session.cc | 44 ++- src/quic/session.h | 2 - src/quic/sessionticket.cc | 53 ++- src/quic/streams.cc | 17 +- src/quic/streams.h | 6 +- src/quic/tlscontext.cc | 338 ++++++++++++++---- src/quic/tlscontext.h | 80 ++++- src/quic/transportparams.cc | 21 +- src/quic/transportparams.h | 4 +- test/cctest/test_quic_preferredaddress.cc | 2 +- test/common/index.js | 2 +- test/parallel/test-cli-node-options-docs.js | 3 + ...rocess-env-allowed-flags-are-documented.js | 4 +- test/parallel/test-process-features.js | 1 + test/parallel/test-process-versions.js | 2 + test/parallel/test-quic-handshake.js | 98 ++--- 44 files changed, 648 insertions(+), 362 deletions(-) diff --git a/configure.py b/configure.py index f845df846c5..3be511a80f1 100755 --- a/configure.py +++ b/configure.py @@ -949,12 +949,6 @@ parser.add_argument('--without-siphash', # End dummy list. -parser.add_argument('--with-quic', - action='store_true', - dest='quic', - default=None, - help='build with QUIC support') - parser.add_argument('--without-ssl', action='store_true', dest='without_ssl', @@ -1941,7 +1935,6 @@ def configure_openssl(o): variables['node_shared_ngtcp2'] = b(options.shared_ngtcp2) variables['node_shared_nghttp3'] = b(options.shared_nghttp3) variables['openssl_is_fips'] = b(options.openssl_is_fips) - variables['node_quic'] = b(options.quic) variables['node_fipsinstall'] = b(False) if options.openssl_no_asm: @@ -2003,12 +1996,6 @@ def configure_openssl(o): if options.openssl_is_fips and not options.shared_openssl: variables['node_fipsinstall'] = b(True) - variables['openssl_quic'] = b(options.quic) - if options.quic: - o['defines'] += ['NODE_OPENSSL_HAS_QUIC'] - - o['variables']['openssl_version'] = get_openssl_version() - configure_library('openssl', o) def configure_sqlite(o): diff --git a/doc/api/cli.md b/doc/api/cli.md index 9d1291e1399..6a4e5ffcf15 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1140,6 +1140,16 @@ If the ES module being `require()`'d contains top-level `await`, this flag allows Node.js to evaluate the module, try to locate the top-level awaits, and print their location to help users find them. +### `--experimental-quic` + + + +> Stability: 1.1 - Active development + +Enable experimental support for the QUIC protocol. + ### `--experimental-sea-config` + +> Stability: 1.1 - Active Development + +Use this flag to disable QUIC. + ### `--no-experimental-repl-await`