-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
net/http: document http2 extended connect support #71128
Comments
The change looks intentional (part of #49918). cc @WeidiDeng @neild |
I doubt this is actually intentional. It will break existing websocket implementations. If anything, the feature should be optional (off by default). Browsers will start trying to open websockets using h2, and it will fail unless there is code in the server to handle those requests. |
Related Issues Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
Here's a boiled down example that demonstrates the problem: https://gist.github.com/rthellend/e77264034eb761ccf32abd274792775a
|
This was added in https://go.dev/cl/610977. I'll leave it to @neild to say whether it is intentional/correct, but I also want to point out that #70728 was filed as a follow-up issue, which I've tentatively made a release blocker as well, and the CL has another comment about a potential deadlock with no issue. |
Go version
go version 1.24rc1
Output of
go env
in your module/workspace:What did you do?
This change, which should be autogenerated appears to have picked up an unintended change to src/net/http/h2_bundle.go
https://go-review.googlesource.com/c/go/+/631336
https://go-review.googlesource.com/c/go/+/631336/2/src/net/http/h2_bundle.go
What did you see happen?
The change to h2_bundle.go that enables the Extended Connect Protocol is undocumented.
What did you expect to see?
The change should either be documented or removed.
The text was updated successfully, but these errors were encountered: