Subject: Re: Using libssh2 1.4.3 is creating corrupt files.

Re: Using libssh2 1.4.3 is creating corrupt files.

From: Alexander Lamaison <>
Date: Wed, 23 Oct 2013 10:44:19 +0100

On 22 October 2013 03:38, Peter Stuge <> wrote:
> Aaron,
> wrote:
>> Buffer size change (we have no idea what the 33 was for, but it was
>> probably required in the old version)
>> -#define WRITEBUFFERSIZE (1024*32)-33
>> +#define WRITEBUFFERSIZE 1024*128
> Isn't this buffer size mandated by the SSH protocol?
> Did you look into what this define affects, to know if you are
> actually allowed to change that number at all?

If this just defines the size of the buffer he passes to something
like libssh2_sftp_write, he should be able to set the buffer to any
size he likes. Nothing is mandated by the protocol here. Or, at
least, anything that is is handled by libssh2 internally.


Swish - Easy SFTP for Windows Explorer (
Received on 2013-10-23