-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Port number incorrectly shared between requests when using HTTP Proxy with connection re-use #1887
Comments
I added some logs in. Looks like there's something squiffy going on in the connection reuse code. Calling
gave
The port parsing in the second case is done on some random new connection, but then the old connection is used when building the Host header. |
I believe it is simply the |
I did this
I expected the following
What actually happened
When re-using a connection with an HTTP Proxy, curl will re-use the port number in the
HOST
header ofwebsite1
when requestingwebsite2
.Full anonymised log: We use an internal proxy server, we did not share the proxy server that we used nor the destination endpoints of the example. Let me know if this is a hurdle:
curl/libcurl version
I've verified that the latest version of curl master is also affected (7.56.0-DEV).
Further notes
I've proposed a workaround here, though this is not ideal we would like to re-use proxy connections while specifying a different port.
#1886
Disabling connection re-use is a workaround for this issue.
The text was updated successfully, but these errors were encountered: