www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: sftp_read problems with large buffer

Re: sftp_read problems with large buffer

From: Mike Taylor <mike_at_codeshorts.ca>
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.

/\/\ike

>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-08-04

the libssh2 team