cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Reflection for Secure IT Server

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 7 May 2010 09:13:57 +0200 (CEST)

On Fri, 7 May 2010, Xu, Qiang (FXSGSC) wrote:

>> No. Don't confuse libcurl's buffer size with the maximum size libssh2 may
>> use or even what it accepts.
>
> But I can see in the trace that libssh2 is using a buffer of this size to do
> the writing:

> SFTP: Writing 16384 bytes

> So, when libcurl does SFTP transfer with libssh2, this CURL_MAX_WRITE_SIZE
> is the maximum buffer size libssh2 uses, isn't it?

Yes it is, but that's basically an artifact of how libssh2 works and not
strictly libcurl's fault. A future libssh2 version could very well change that
(and hopefully it will since the strict relation is a shortcoming mostly).

Besides, that 32K is the *maximum* size SFTP allows and that an implementation
should support. It can of course still use smaller sizes as much as it likes.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-07