-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
reverse proxy: rewrite requests and responses for websocket over http2 #6567
base: master
Are you sure you want to change the base?
Conversation
Very neat, nice work @WeidiDeng 💯 |
I'm not 100% sure but a regular HTTP/2 GET request should contain the new setting parameter as outlined in RFC8441 Section 3?
Tested via curl: curl --trace request.dump --trace-config http/2 https://example.com |
i'm not sure about curl debug dump. But I tested this with my Chrome and it works. The setting frame is send at the start of a new http2 connection, so it's sent regardless of the method client uses. Even without my patch, golang http2 sends the following settings: The output doesn't list all of them. |
Supports reverse proxying h2 websockets to backends. Fix 5565.
Requires upstream support, but can be tested with
xcaddy build reverse-proxy-h2-websocket --replace golang.org/x/net=github.com/WeidiDeng/net@websocket-http2