cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTPS CURL get slow when calling at first time

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 27 Nov 2012 22:49:54 +0100

On Tue, Nov 27, 2012 at 08:42:41PM +0100, Oscar Koeroo wrote:
> Have you Wiresharked an empty SSL handshake? It is interesting to see how
> fast your TCP/IP is handhaking and the latency from SSL/TLS Client Hello and
> Server Hello to a complete session. IMHO guessing is inefficient, measuring
> is the start of science.

Another big potential source of latency on startup is the DNS lookup. A
few bad DNS servers in the lookup path, or a misconfigured name service
switch config could potentially add up to 40 seconds of delay.
Subsequent connects wouldn't see that delay because the results would be
cached for a while.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-27