cURL / Mailing Lists / curl-library / Single Mail


Re: Question regarding SSL caching behavior of LibCurl

From: Ben Noordhuis <>
Date: Tue, 22 Mar 2011 23:03:19 +0100

On Tue, Mar 22, 2011 at 19:13, ajil koshy <> wrote:
> I am writing an HTTPS client application using libcurl compiled with
> OpenSSL. I had a question regarding behavior of Libcurl with respect to SSL
> session caching. It seems it is enabled by default. I would like to know if
> the cache still remains if we have closed the libcurl easy handle. Let's say
> I communicate with an HTTPS server. Do I have to keep the curl handle open
> given that I need connect to the same server as I did before? Thanks in
> advance.

Yes, you will have to keep it open. curl_easy_cleanup() destroys the
session cache, it's not a global resource.
List admin:
Received on 2011-03-22