cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Delay of 180ms seen between requests when using HTTPS

From: Allen Pulsifer <pulsifer3_at_comcast.net>
Date: Tue, 24 Jul 2007 14:57:19 -0400

> I've written an application that does many HTTPS downloads in
> succession. I am finding that the application takes about 180ms to
> perform one of the operations, even over a very well-connected local
> network. I looked at the logs on the server side, and found that it
> takes only 2 or 3 ms to fulfill the GET, which makes me suspect that
> the delay is on the client end when it connects to the server.
>
> I call curl_easy_init() once on startup, and then set most of my
> options. The only option that I set when preparing the next call to
> curl_easy_perform is curl_easy_setopt for CURLOPT_URL. My question
> is whether the call to curl_easy_setopt to set CURLOPT_URL could be
> causing a delay, such as another HTTPS handshake (I suspect
> that curl re-uses the same connection and thus only one handshake
> is performed, but I wasn't completely sure).

Hi David,

Since your post doesn't specifically state this, let me ask:

Are all requests to the same host?

Allen
Received on 2007-07-24