cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP upload speed problem and buffer size

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 9 Oct 2007 10:01:30 -0700

On Tue, Oct 09, 2007 at 06:11:59PM +0200, Ivan Makale wrote:
> - Do you know which is the curl executable equivalent of libcurl
> CURLOPT_BUFFERSIZE?

There's no direct equivalent, but CURLOPT_BUFFERSIZE is set as a side effect
of --limit-rate.

> - Have you got any suggestion, in general, about obtaining curl FTP
> transfer speed about like command line FTP speed (and not much less)?

curl can sometimes try a couple of different FTP modes before
finding the correct one to use which will cause a measurable slowdown on
a high-latency connection. If you know which one is usable you can have
curl use it directly (e.g. --disable-epsv, --ftp-port, --ipv4).
Something similar holds for the CWD method as well (--ftp-method), and the
Nagle algorithm can also increase latency (--tcp-nodelay).

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-09