Subject: Re: sftp_read retuning 0 prematurely

Re: sftp_read retuning 0 prematurely

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Mon, 5 Sep 2011 00:23:30 +0100

On 5 September 2011 00:02, Alexander Lamaison <swish_at_lammy.co.uk> wrote:
>
> The other regression I've discovered is sftp_read blocking with a
> buffer over about 20000 bytes on the *second* read.  The first time
> round it seems to work no matter how big I make the buffer.

I was mistaken. If the initial buffer is 3970000 bytes, it succeeds
one the first read and blocks on the second. If the initial buffer is
3970001 it blocks and the first read.

Anoyingly, I can't reproduce this if I enable tracing so no debug log yet.

Alex

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-09-05