cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sftp and buffersize

From: Daniel Stenberg <daniel_at_haxx.se>
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

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-17