cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Tue, 24 Jul 2007 21:01:42 +0200

On 7/24/07, David Lobron <dlobron_at_akamai.com> wrote:
> 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.

Y may wish look also at the ethereal/wireshark/tcpdump/etc capture.

-- 
Sincerely,
Robert Iakobashvili,
coroberti %x40 gmail %x2e com
...........................................................
http://curl-loader.sourceforge.net
A web testing and traffic generation tool.
Received on 2007-07-24