cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: connection reuse with proxies and ssl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 26 Jan 2008 23:41:19 +0100 (CET)

On Sat, 26 Jan 2008, Gautam Kachroo wrote:

> I haven't figured out the cause either, but I did notice that the failure
> went away when I turned on CURLOPT_FORIBID_REUSE. It's as if something gets
> messed up if the connection (for the first url) is still around when the
> connection for the second url is made.

It seems that for a unpatched version the connection is re-used fine in the
test (which means the connection is re-used when the connection is not in
ssl_connection_complete yet), while the patched version refuses to reuse that
connection then.

You can see this by setting a break-point in ConnectionExists and investigate
the structs when it gets called the second time.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-26