mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:13:34 +03:00
- Jad Chamcham pointed out a bug with connection re-use. If a connection had
CURLOPT_HTTPPROXYTUNNEL enabled over a proxy, a subsequent request using the same proxy with the tunnel option disabled would still wrongly re-use that previous connection and the outcome would only be badness.
This commit is contained in:
parent
6da73d09f1
commit
a41493b3b0
3 changed files with 9 additions and 1 deletions
|
|
@ -2758,6 +2758,7 @@ ConnectionExists(struct SessionHandle *data,
|
|||
is the checked one using the same host, port and type? */
|
||||
if(check->bits.proxy &&
|
||||
(needle->proxytype == check->proxytype) &&
|
||||
(needle->bits.tunnel_proxy == check->bits.tunnel_proxy) &&
|
||||
Curl_raw_equal(needle->proxy.name, check->proxy.name) &&
|
||||
needle->port == check->port) {
|
||||
/* This is the same proxy connection, use it! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue