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

Re: Using libssh2 1.4.3 is creating corrupt files.

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

On 22 October 2013 03:38, Peter Stuge <peter_at_stuge.se> wrote:
> Aaron,
>
> Aaron.Stokes_at_us.mahle.com 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.

Alex

-- 
Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org)
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-10-23