cURL / Mailing Lists / curl-library / Single Mail


Re: sftp and buffersize

From: Daniel Stenberg <>
Date: Mon, 17 Oct 2011 16:52:21 +0200 (CEST)

On Mon, 17 Oct 2011, Jonas Schnelli wrote:

> But is there a chance to change the default 16K buffer to different value?
> Didn't found it straight away in the libcurl source. I just wan't to play
> with the buffer size to see how's the improvement and then decide to keep or
> through out sftp support in my software (for now :) ). Or can i somehow
> hack/change the buffersize in libcurls sftp.c?

Set CURL_MAX_WRITE_SIZE to perhaps 100K or something and rebuild libcurl and
see what difference it makes. It is defined in include/curl/curl.h

List admin:
Received on 2011-10-17