mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
connections: non-HTTP proxies on different ports aren't reused either
Reported-by: Oleg Pudeyev and fuchaoqun Fixes #648
This commit is contained in:
parent
96eb9a862b
commit
5823179523
@ -140,7 +140,7 @@ static char *hashkey(struct connectdata *conn)
|
||||
else
|
||||
hostname = conn->host.name;
|
||||
|
||||
return aprintf("%s:%d", hostname, conn->localport);
|
||||
return aprintf("%s:%d", hostname, conn->port);
|
||||
}
|
||||
|
||||
/* Look up the bundle with all the connections to the same host this
|
||||
|
@ -3376,7 +3376,7 @@ ConnectionExists(struct SessionHandle *data,
|
||||
}
|
||||
}
|
||||
|
||||
if(!needle->bits.httpproxy || (needle->handler->flags&PROTOPT_SSL) ||
|
||||
if(!needle->bits.proxy || (needle->handler->flags&PROTOPT_SSL) ||
|
||||
(needle->bits.httpproxy && check->bits.httpproxy &&
|
||||
needle->bits.tunnel_proxy && check->bits.tunnel_proxy &&
|
||||
Curl_raw_equal(needle->proxy.name, check->proxy.name) &&
|
||||
|
Loading…
Reference in New Issue
Block a user