cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: Avoding connection re-use when using CURLOPT_HTTPPROXYTUNNEL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Nov 2009 23:00:43 +0100 (CET)

On Tue, 3 Nov 2009, Jad Chamcham wrote:

> You are correct, one type of requests has CURLOPT_HTTPROXYTUNNEL set and the
> other does not; yet they both go through the same proxy

Could you please try the patch below and tell us how it works for this
problem?

diff -u -p -r1.814 url.c
--- lib/url.c 17 Nov 2009 22:53:55 -0000 1.814
+++ lib/url.c 19 Nov 2009 21:59:24 -0000
@@ -2758,6 +2758,7 @@ ConnectionExists(struct SessionHandle *d
                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! */

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-19

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET