-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
proxy: enable HTTP CONNECT request support #1200
Conversation
When the proxy receives a `CONNECT` request, the HTTP Upgrade pieces are used since a CONNECT is very similar to an Upgrade. If the CONNECT response back from the proxied client request is successful, the connection is converted into a TCP proxy, just like with Upgrades. Signed-off-by: Sean McArthur <[email protected]>
I'm seeing an issue testing this:
Upping the log level, I see some additional information:
|
From the logs, it looks like the |
Duh, my test checks whether the proxy terminates CONNECT streams. It does not. It forwards CONNECT streams. This seems to work as expected ;D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! I haven't tested this extensively, but I have confirmed that it forwards CONNECT requests as expected.
When the proxy receives a `CONNECT` request, the HTTP Upgrade pieces are used since a CONNECT is very similar to an Upgrade. If the CONNECT response back from the proxied client request is successful, the connection is converted into a TCP proxy, just like with Upgrades.
When the proxy receives a `CONNECT` request, the HTTP Upgrade pieces are used since a CONNECT is very similar to an Upgrade. If the CONNECT response back from the proxied client request is successful, the connection is converted into a TCP proxy, just like with Upgrades.
When the proxy receives a
CONNECT
request, the HTTP Upgrade piecesare used since a CONNECT is very similar to an Upgrade. If the CONNECT
response back from the proxied client request is successful, the
connection is converted into a TCP proxy, just like with Upgrades.
(I couldn't find a related issue to link this with...)