Repository navigation
Conversation
Signed-off-by: Tim Perry <pimterry@gmail.com>
ngtcp2 discarded a 0-RTT packet that arrived after the first Initial packet but before the 0-RTT key was installed. That happens when the ClientHello spans several Initial packets, or when the handshake is interrupted, as the QUIC server does to emit the new session. Buffer the packet until the Handshake key is installed instead. Assisted-by: Claude Opus 5.5
Collaborator
|
Review requested:
|
pimterry
commented
Dec 3, 2026
| // The option's value, or the process-wide default when it is omitted. OpenSSL | ||
| // accepts an empty list, leaving no groups and so no key exchange; only | ||
| // node:tls, for compatibility, passes allowEmpty. | ||
| function resolveGroups(groups, name, allowEmpty = false) { |
Member
Author
There was a problem hiding this comment.
(Plan here is a later breaking change to stop node:tls accepting '' as a valid value at all, so they're all consistent, but not today)
Member
|
This generally lgtm but can we pull the dtls changes out into a separate pr? I have a stack of pending changes I'm about to open that will directly conflict. I want to include the dtls change here but will stack it on the other edits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an alternative to #67991. Instead of adding one group to QUIC to patch the problem, this changes both QUIC & DTLS to directly use
tls.DEFAULT_ECDH_CURVEand share their group configuration code.That gives them matching defaults, but also means that global changes either via env var or CLI (#67993) apply to them too automatically, and stops them diverging in future.
This introduces new files for cross-module TLS negotiation code. Right now these are very small, so this looks a bit silly. These are minimal for now just focus on the groups question, but would expand later to commonize the other negotiation params too (ciphers, sigalgs, cert compression, etc). #67992 implementation could also live in here, or move later.
Opening as a draft with the same ngtcp2 floating patch cherry-picked from #67991.