FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

quic: send correct OpenSSL alert for ALPN mismatches by pimterry · Pull Request #63193 · nodejs/node · GitHub

/ node Public

quic: send correct OpenSSL alert for ALPN mismatches - #63193

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
pimterry:fix-alpn-code
May 15, 2026
Merged

quic: send correct OpenSSL alert for ALPN mismatches#63193
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
pimterry:fix-alpn-code

Conversation

pimterry commented May 8, 2026

Copy link
Copy Markdown
Member

Currently if the QUIC server doesn't agree with any of the client's proposed protocols, it returns SSL_TLSEXT_ERR_NOACK to OpenSSL, which in normal TLS acts as "ignore ALPN". Since it's obligatory in QUIC this doesn't work - the resulting test checking this was actually receiving an internal_error alert (336n) on the wire when this happened. This does fail the connection, but it's clearly not correct.

We now return SSL_TLSEXT_ERR_ALERT_FATAL instead, which sends the proper no_application_protocol TLS alert to the client instead, as required by the RFC.

This has notably pointed out to me that we have no nice error messages in here: on the JS side, these just reference the raw error code (now 376n) with no other info. I'll bring in a general fix for error handling in another PR, watch this space.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3. labels May 8, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>

codecov Bot commented May 8, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.04%. Comparing base (b5da751) to head (a4a20cc).
⚠️ Report is 59 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #63193    +/-   ##
========================================
  Coverage   90.03%   90.04%            
========================================
  Files         713      713            
  Lines      224510   224926   +416     
  Branches    42438    42533    +95     
========================================
+ Hits       202148   202535   +387     
- Misses      14163    14175    +12     
- Partials     8199     8216    +17     

see 45 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

nodejs-github-bot commented May 14, 2026
edited by jasnell
Loading

Copy link
Copy Markdown
Collaborator

jasnell added the commit-queue Add this label to land a pull request using GitHub Actions. label May 15, 2026
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 15, 2026
nodejs-github-bot merged commit f190a04 into nodejs:main May 15, 2026
69 of 70 checks passed

Copy link
Copy Markdown
Collaborator

Landed in f190a04

aduh95 pushed a commit that referenced this pull request May 19, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: #63193
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request May 19, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: #63193
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit to aduh95/node that referenced this pull request Jul 30, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: nodejs#63193
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit to aduh95/node that referenced this pull request Aug 3, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: nodejs#63193
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: #63193
Backport-PR-URL: #64675
Reviewed-By: James M Snell <jasnell@gmail.com>
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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL