Skip to content
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

CXF-8936 Fix h2 protocol negotiation in Jetty Transport #1454

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

huw0
Copy link
Contributor

@huw0 huw0 commented Sep 26, 2023

Summary

I have been trying to update one of our apps using the Jetty backend to use http2. While doing this I've noticed that the protocol negotiation is in the wrong order which results in http/1.1 always being preferred where the client includes this in the ALPN handshake. This means that both browsers and cURL will never successfully negotiate h2/http2.

https://issues.apache.org/jira/browse/CXF-8936

output-jetty-original.txt
output-netty.txt

@huw0 huw0 changed the title Ensure correct ConnectionFactory ordering in Jetty transport so that … Fix h2 protocol negotiation in Jetty Transport Sep 26, 2023
@huw0 huw0 changed the title Fix h2 protocol negotiation in Jetty Transport CWF-8936 Fix h2 protocol negotiation in Jetty Transport Sep 26, 2023
@huw0 huw0 changed the title CWF-8936 Fix h2 protocol negotiation in Jetty Transport CXF-8936 Fix h2 protocol negotiation in Jetty Transport Sep 26, 2023
@huw0 huw0 force-pushed the jetty-transport-connectionfactory-ordering branch 3 times, most recently from 32f4d30 to e1d0f88 Compare September 26, 2023 17:09
@huw0 huw0 force-pushed the jetty-transport-connectionfactory-ordering branch from e1d0f88 to 04dba00 Compare October 3, 2023 20:57
@reta reta merged commit 202c510 into apache:main Oct 4, 2023
3 checks passed
reta pushed a commit that referenced this pull request Oct 4, 2023
…t so that clients can negotiate h2 (#1454)

(cherry picked from commit 202c510)

# Conflicts:
#	rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants