-
Notifications
You must be signed in to change notification settings - Fork 2k
Issue #14061 - Fix Alt-Svc header to use HTTP/3 connector port #14195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: jetty-12.1.x
Are you sure you want to change the base?
Conversation
04d2c00 to
c23feb1
Compare
|
@afarber, I think it's slightly more complicated.
In light of this, I think it is perhaps best to make We can have a @afarber let me know if you want to continue to work on this given the instructions above, otherwise we'll take over. Thanks! |
|
@lorban thoughts on the above? |
|
@sbordet an alternative could be to move the alt-svc logic to the H2 connection factory: move the |
c23feb1 to
64e18c1
Compare
lorban
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few small things to change here and there, but overall this is the idea I had in mind.
@sbordet what do you think of this?
...test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/AltSvcTest.java
Outdated
Show resolved
Hide resolved
...test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/AltSvcTest.java
Outdated
Show resolved
Hide resolved
...test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/AltSvcTest.java
Outdated
Show resolved
Hide resolved
...test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/AltSvcTest.java
Outdated
Show resolved
Hide resolved
...-http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnectionFactory.java
Outdated
Show resolved
Hide resolved
...-http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnectionFactory.java
Show resolved
Hide resolved
...test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/AltSvcTest.java
Outdated
Show resolved
Hide resolved
cdc87c6 to
04abe82
Compare
f378603 to
2fe1a03
Compare
lorban
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides a few small improvements to the doc, this LGTM.
BTW, did you sign the Eclipse Contributor Agreement?
documentation/jetty/modules/programming-guide/pages/server/http.adoc
Outdated
Show resolved
Hide resolved
documentation/jetty/modules/programming-guide/pages/server/http.adoc
Outdated
Show resolved
Hide resolved
documentation/jetty/modules/programming-guide/pages/server/http.adoc
Outdated
Show resolved
Hide resolved
2fe1a03 to
9249f8a
Compare
|
@sbordet is there anything you want to add to this? |
Fixes #14061
AltSvcCustomizertoHTTP2ServerConnectionFactorythat automatically adds theAlt-Svcheader to HTTP/2 responses, advertising HTTP/3 availability with the correct port and configurablema(max-age) attribute per RFC 7838.AltSvcCustomizer.setMaxAge(Duration)allows configuring themaattribute (default: 24 hours, set tonullto omit)AltSvcCustomizerfromHTTP3ServerConnectionFactorywhich incorrectly used the HTTP/2 portmaxAgeconfigurationmaattribute explanation