-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Response timeout when an h2c request was sent and the response's content-encoding is gzip #6141
Comments
9.4.39.v20210325 and 10.0.2 have the same problem. |
Please upgrade to the latest Jetty. Does the server support (or is configured with) prior-knowledge clear-text HTTP/2? Can you run the above with DEBUG logging, collect the logs in a file and attach the log file to this issue? |
The logs as below:
|
I can get the correct response by following curl command.
< HTTP/1.1 101
|
same issue, any workaround? |
I cannot reproduce this issue with the latest Jetty, everything works fine for me. Can you please enable DEBUG logging for Your current logs show that the client sent a reset to the server after receiving the first 2 chunks. |
https://github.com/qingdaoheze/jetty-gzip-decode This is my demo projects, you can reproduce the case as below. |
@qingdaoheze I took your repository, fixed the POMs, and run your project.
|
What did you change? @sbordet |
Made the root POM a multi-module, added the correct No changes to the code, everything works fine. |
What JDK version do you use? |
I added the JDK version in the pom. Please try again, And I add you to the collaborator of my repo, you can modify it directly. @sbordet |
I think tomcat 9.0.21 is not suit for jetty http2, when upgrade to 9.0.44 work fine |
I upgraded the tomcat version, it works fine. Thank you very much! |
Jetty version
9.4.19.v20190610
Java version
1.8
OS type/version
MAC OS / 10.15.6
Description
Use the following code to send a h2c request to a tomcat server(tomcat-embeded-core-9.0.21), when the response's content-encoding is gzip, the client will be blocked until timeout.
The text was updated successfully, but these errors were encountered: