cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: speeding up curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 1 Aug 2003 13:29:11 +0200 (CEST)

On Fri, 1 Aug 2003, Jared Ingersoll wrote:

> I was wondering if there is any way to speed up curl over ssl? I'm currently
> using it to do a post over https, and it's taking around 30 seconds to get a
> result back. An in-house Java application that we have takes 3-5 seconds to
> return a result, so I can only assume that the delay is something that is
> unique to either curl, or openssl.

I can only agree with you, but there is nothing in curl that should make it
behave like this. curl should at least be equally fast up to a lot faster than
any java app for SSL traffic.

To figure out what's happening, I'd suggest you:

1. use curl --trace as help to detect what the delay is
2. snoop network traffic to figure out clues
3. strace curl to see if there's a particular system call that seems to take
   a long time.

30 seconds to get a result back sounds awfully bad and I've never personally
seen curl behave that bad.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-01