curl-library
Re: Delay of 180ms seen between requests when using HTTPS
Date: Tue, 24 Jul 2007 15:22:03 -0400
Hey Allen-
Thank you for the fast reply. Yes, all these requests are to the
same host, and that host is only serving these requests at the time.
My application is written in Objective-C, and runs on both Mac OSX
and Linux. Please let me know if I can provide any more information
that might help with debugging!
Best,
David
On Jul 24, 2007, at 2:57 PM, Allen Pulsifer wrote:
>> 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