cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Persistent HTTPS connections

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 27 Jan 2007 22:10:16 +0100 (CET)

On Sat, 27 Jan 2007, Andreas Rieke wrote:

> after adding some additional infof function calls to ConnectionExists, I
> could find out that Curl_ssl_config_matches causes the problem (an infof at
> this place, maybe "SSL parameters differ, can't reuse.\n" would be nice).

Patch?

> Within Curl_ssl_config_matches, I can see that you compare CApath and
> CAfile, and this is the reason for cURL using new connections with my
> application.

Aha!

> We could now discuss whether it makes sense to compare file names where the
> file contents are relevant

I agree, but that would force us to either checksum the content or keep it all
in memory for that purpose only. And currently we just pass the file name to
the SSL lib so libcurl never bothers with the contents...

Should you feel enough to write up a patch, I'll review it...

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