Repository navigation
[9.4] (backport #20908) Fix HTTP/2 SETTINGS mismatch connection failure in gmux - #20915
Merged
Merged
Conversation
* Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c)
Contributor
🤖 GitHub commentsJust comment with:
|
1 of 2 tasks
carsonip
approved these changes
Apr 16, 2026
Contributor
Author
Merge Queue Status
This pull request spent 15 minutes 31 seconds in the queue, including 15 minutes 14 seconds running CI. Required conditions to merge
|
30 of 43 tasks
Contributor
💚 Build Succeeded
cc @carsonip |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation/summary
apm-servercurrently vendors agmuxversion that can trigger HTTP/2 connection failures with strict clients after ALPN negotiatesh2(for example, curl/nghttp2 reporting framing/peer-close errors). The root problem is a SETTINGS mismatch sequence introduced bygolang.org/x/net/http2starting atv0.50.0when multiplexers emit an initial sniffing SETTINGS frame before handing off tohttp2.Server.This PR bumps
gmuxto the fix from elastic/gmux#97, which makes gmux mirror the backendhttp2.Serverinitial SETTINGS (instead of sending an empty sniffing SETTINGS), avoiding illegal SETTINGS value changes on the same connection. That restores HTTP/2 interoperability for affected clients while keeping gmux behavior resilient to backend initial-settings changes.Before:
After:
Checklist
docs/release-notes/index.md:For functional changes, consider:
How to test these changes
See new system test
Related issues
Fixes #20887
This is an automatic backport of pull request #20908 done by [Mergify](https://mergify.com).