Repository navigation
Fix HTTP/2 SETTINGS mismatch connection failure in gmux - #20908
Conversation
🤖 GitHub commentsJust comment with:
|
|
This pull request does not have a backport label. Could you fix it @carsonip? 🙏
|
💚 Build Succeeded
|
|
@Mergifyio backport 8.19 9.3 9.4 |
✅ Backports have been createdDetails
Cherry-pick of bbaaf9c has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Cherry-pick of bbaaf9c has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
|
|
@Mergifyio backport 8.19 9.3 9.4 |
|
@Mergifyio backport 9.4 |
☑️ Command
|
✅ Backports have been createdDetails
|
* Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c) # Conflicts: # go.sum
* Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c) # Conflicts: # go.sum
* Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c)
* Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c)
…re in gmux (#20913) * Fix HTTP/2 SETTINGS mismatch connection failure in gmux (#20908) * Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c) # Conflicts: # go.sum * Fix conflict --------- Co-authored-by: Carson Ip <carsonip@users.noreply.github.com> Co-authored-by: Carson Ip <carson.ip@elastic.co>
…ure in gmux (#20912) * Fix HTTP/2 SETTINGS mismatch connection failure in gmux (#20908) * Bump gmux to fix http2 settings frame error * make notice * Add http2_test.go * make check-full (cherry picked from commit bbaaf9c) # Conflicts: # go.sum * Fix conflict --------- Co-authored-by: Carson Ip <carsonip@users.noreply.github.com> Co-authored-by: Carson Ip <carson.ip@elastic.co>
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