cURL / Mailing Lists / curl-library / Single Mail

curl-library

Delay of 180ms seen between requests when using HTTPS

From: David Lobron <dlobron_at_akamai.com>
Date: Tue, 24 Jul 2007 14:42:28 -0400

Hey All-

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). Please let me know if there are any
other factors that could be causing the delay.

Thank you,

David
Received on 2007-07-24