Subject: Re: [SFTP] Is there a way to determine the maximum buffer len when reading.

Re: [SFTP] Is there a way to determine the maximum buffer len when reading.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 27 Aug 2013 22:10:12 +0200 (CEST)

On Tue, 27 Aug 2013, Velichko Yuriy wrote:

> I checked the code again, and unfortunately have not found the answer why
> the block size is limited by 2000 bytes.
>
> libssh2_sftp_read() always returns 2000 if I ask read bigger block.
>
> So I had to split reading on several steps with less (fixed) block size.

I don't understand what you want. I already explained why it behaves like this
and why it is _good_ for most (if not all) users.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-08-27