Subject: Re: sftp_read problems with large buffer

Re: sftp_read problems with large buffer

From: Mike Taylor <>
Date: Tue, 4 Aug 2009 14:13:48 -0400

On 2009-08-04, at 1:55 PM, Peter Stuge wrote:
>> I wish we had a test suite that would catch these errors before we
>> commit...
> This is tricky to test for because the failure is dependant on how
> the operating system behaves, which depends on if it's a local
> connection or a remote connection, and maybe even which kernel it's
> running on.

For me, it was also sensitive to timing. If I delayed the read, the
bug went away, presumably because the data was allowed to buffer and
was then transferred as one big chunk.


> //Peter
> _______________________________________________
> libssh2-devel

Received on 2009-08-04