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

Disable http2 connect setting for websocket by default #11412

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

rtribotte
Copy link
Member

What does this PR do?

This PR makes use of the GODEBUG flag http2xconnect to deactivate the connect setting for HTTP2 by default.

Motivation

With the update to golang.org/x/net v0.33.0 we brought the following changes: https://go-review.googlesource.com/c/net/+/610977
It enabled by default the server to answer to be handling connect method for http2 websocket upgrade.
However, this advertisement for this type of upgrade is yet incompatible with net/http http1 reverse proxy. (please see golang/go#71128 (comment)).

Fixes #11405

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Kevin Pollet pollet.kevin@gmail.com
Co-authored-by: Julien Salleyron julien.salleyron@gmail.com
Co-authored-by: Michael michael.matur@gmail.com

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@traefiker traefiker merged commit f9ff604 into traefik:v2.11 Jan 7, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants