cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Performance problem

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 21 Nov 2003 10:53:06 +0100 (CET)

On Fri, 21 Nov 2003, Stefan Sassenberg wrote:

> I want to send 100 files, 5 files a second which should take about 20
> seconds time. The server is fast enough (tested with command line 'ftp').
> Each file has a size of appr. 70kB. The output below shows the first part of
> the libcurl log. At the lines where I inserted 'BREAK' the output is delayed
> for about 4.5 seconds. What can I do? The same code also works faster on
> other servers.

As the output shows, the TCP connects to this server are really slow. The fact
that you don't see this hit on other servers also indicates that the server is
to blame for this slowness.

> < 227 Entering Passive Mode (194,95,172,11,197,85)
> * About to connect() to 194.95.172.11:50517
> BREAK
> * Connecting to 194.95.172.11 (194.95.172.11) port 50517

See? The 'Entering Passive Mode' is when the server says it has a port open
for libcurl to connect to, and when the 'Connecting to 194.95.172.11' text
shows up, libcurl has finished connecting. The time between those events are
spent waiting for the TCP handshake.

I guess an analyze of what is sent over the wire could reveal some more
details (on TCP level).

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-21