curl-library
Re: SFTP fails (Failure when receiving data from the peer)
Date: Wed, 10 Dec 2008 22:43:52 +0100 (CET)
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":
I've not yet managed to find enough time and energy and motivation to work on
that problem myself.
-- / daniel.haxx.seReceived on 2008-12-10