cURL / Mailing Lists / curl-users / Single Mail

curl-users

Slow SSL Connections

From: Georg Horn <horn_at_koblenz-net.de>
Date: Wed, 14 Apr 2004 13:51:37 +0200

Hi,

i have a strange problem with curl and the latest release of openssl
on a solaris machine:

# uname -a
SunOS db24vi.vs 5.6 Generic_105181-35 sun4u sparc SUNW,Ultra-4

# gcc -v
Reading specs from /usr/local/gcc-2.95.1/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/specs
gcc version 2.95.1 19990816 (release)

# curl -V
curl 7.9.8 (sparc-sun-solaris2.6) libcurl 7.9.8 (OpenSSL 0.9.7d)

When i issue the following command:

# curl -s -w 'namelookup: %{time_namelookup}, connect: %{time_connect}, \
    pretrans: %{time_pretransfer}, starttrans: %{time_starttransfer}\n' \
    https://some.server.com/ -o /dev/null
namelookup: 0.118, connect: 0.128, pretrans: 0.989, starttrans: 1.004

the pretransfer time is a lot larger than it was before with an older
openssl version. If i start for example 10 instances of the above command
in the background, pretransfer time goes up to something around 3 or 4
seconds. I then rebuilt curl with the old openssl version, and times
went back to normal values:

# src/curl -V
curl 7.9.8 (sparc-sun-solaris2.6) libcurl 7.9.8 (OpenSSL 0.9.6m)

# src/curl -s -w [...]
namelookup: 0.009, connect: 0.019, pretrans: 0.176, starttrans: 0.190

Starting 10 parallel sessions of the last command gives pretransfer
times around 0.2 seconds.

I tried to verify this with the latest version of curl, 7.11.1, but there
seems to be a bug:

# src/curl -s -w [...]
namelookup: 0.009, connect: 0.019, pretrans: 0.000, starttrans: 0.000

Pretrans and starttrans are always 0...

Any idea, if this is a problem in curl, or in openssl?

Bye,
Georg
Received on 2004-04-14