cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTPS CURL get slow when calling at first time

From: Lijo Antony <lta_at_one.com>
Date: Mon, 26 Nov 2012 14:02:25 +0400

On 11/26/2012 01:24 PM, sagar hagawne wrote:
> Hi,
>
> I am using a CURL version 7.27.0 and passing the url using HTTPS
> but the first call to the curl_easy_perform(curl) is very very slow, but
> all subsequent calls are fast
> the problem seems to be anything to be initialization of CURL handle or
> seems need to connect to socket and wait to open an interface.

For the first easy_perform, libcurl creates a new connection which
involves many steps including SSL handshake. But for the subsequent
easy_performs, libcurl reuses cached information and even the connection
itself. That is why they seem faster. I don't think this is a bug.

-lijo

> I have already posted some threads on curl_users list of that
> issue, but not find a perfect solution and i am facing a same problem
> please go through the following threads,
>
> http://curl.haxx.se/mail/archive-2012-11/0025.html
> http://curl.haxx.se/mail/archive-2012-11/0026.html
> http://curl.haxx.se/mail/archive-2012-11/0027.html
> http://curl.haxx.se/mail/archive-2012-11/0029.html
> http://curl.haxx.se/mail/archive-2012-11/0030.html
> http://curl.haxx.se/mail/archive-2012-11/0031.html
> http://curl.haxx.se/mail/archive-2012-11/0032.html
> http://curl.haxx.se/mail/archive-2012-11/0033.html
>
> Any Solution?
>
> Thanks,
> Sagar
>
>
>
>
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-26