Skip to content

Conversation

@afarber
Copy link
Contributor

@afarber afarber commented Dec 15, 2025

Fixes #14061

  • Changed AltSvcCustomizer to get the port from the HTTP/3 connector instead of the HTTP/2 request's connector
  • Added getConnector() getter to AbstractHTTP3ServerConnectionFactory to expose the connector to subclasses
  • Added test verifying Alt-Svc header contains correct port when HTTP/2 and HTTP/3 run on different ports
  • Updated docs with a tip about automatic Alt-Svc header generation

Previously, when HTTP/2 ran on port 8443 and HTTP/3 on port 8444, the Alt-Svc header incorrectly advertised h3=":8443" instead of h3=":8444", causing browsers to fail the HTTP/3 upgrade.

@sbordet sbordet self-requested a review December 15, 2025 14:57
@sbordet sbordet moved this to ✅ Done in Jetty 12.1.6 Dec 15, 2025
@sbordet sbordet moved this from ✅ Done to 🏗 In progress in Jetty 12.1.6 Dec 15, 2025
@joakime joakime moved this from 🏗 In progress to 👀 In review in Jetty 12.1.6 Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Jetty 12.1.4 demo HTTP/3 wrong port in alt-svc response header

1 participant