cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP fails (Failure when receiving data from the peer)

From: Markus Moeller <huaraz_at_moeller.plus.com>
Date: Sat, 13 Dec 2008 16:35:17 -0000

I think I found the issue in libssh2 (see my post in libssh2-devel)

Markus

"Daniel Stenberg" <daniel_at_haxx.se> wrote in message
news:alpine.LRH.2.00.0812102233530.8669_at_yvahk3.pbagnpgbe.fr...
> On Wed, 10 Dec 2008, Markus Moeller wrote:
>
>> I am using curl 7.19.2 with libssh2 2.0.18 and see the same issue as
>> described below (e.g recv returns -1) and I can't download a file with
>> sftp. So, basically it isn't usable as it works sometimes and sometimes
>> it doesn't.
>>
>> What is the solution to this problem ? Do I need a snapshot libssh2 and
>> a curl fix ?
>
> The problem described, which seems to be happening when libssh2 gets a
> buffer size of 16K passed to it when reading data from an SFTP connection,
> is a problem with libssh2 - I don't see how a libcurl change can be the
> right fix.
>
> The correct approach here is to work on the libssh2 library to fix this
> flaw. This thread on the libssh2-devel list seems to be "the one":
>
> https://sourceforge.net/mailarchive/forum.php?thread_name=9c3275a90811261517v6c0b1da2u918cc1b8370abf83%40mail.gmail.com&forum_name=libssh2-devel
>
> I've not yet managed to find enough time and energy and motivation to work
> on that problem myself.
>
> --
>
> / daniel.haxx.se
>
Received on 2008-12-13