Skip to content

Stream reset issues with h2c after updating to Jetty 12.1.6 #14434

@ghjm

Description

@ghjm

Jetty version(s)
12.1.6

Jetty Environment
I'm using Jetty via Dropwizard 5.0.1 with type: simple and connector type: h2c. Dropwizard enables gzip by default.

HTTP version
http/2 (h2c)

Java version/vendor (use: java -version)
OpenJDK Runtime Environment Zulu21.48+15-CA (build 21.0.10+7-LTS)
OpenJDK 64-Bit Server VM Zulu21.48+15-CA (build 21.0.10+7-LTS, mixed mode, sharing)

OS type/version
Alpine Linux v3.20

Description
I have an app deployed to Google Cloud Run, with the "Use HTTP/2 end-to-end" setting enabled, so all traffic to the Jetty service is http/2. After Jetty was updated to version 12.1.6, the app became inaccessible with the following error message appearing to all users:

upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset

Reverting to Jetty 12.1.5 solved the problem. I used git bisect and found that the following commit seems to be the one causing my issue: #14260 (Improve GZIP Performance). Perhaps the handler callback changes are somehow causing premature termination of the stream, or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor general bugs on Jetty side

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions