cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: sftp--curl: (56) Failure when receiving data from the peer.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Feb 2014 09:43:36 +0100 (CET)

On Tue, 18 Feb 2014, Michael Zhang wrote:

> I was using curl 7.35 to download a file from a JScape sftp server but got a
> problem. The connection was closed after 64000 bytes. What's received is
> only partial file. Here is a simplified log file. The returned error message
> is curl: (56) Failure when receiving data from
> the peer.

...

> Could anyone help me to figure out why this abnormal trunk happened and how
> to resolve this issue? It seems that curl was expecting 2000 bytes for the
> trunk and it reported an error because only 1536 bytes were received.

Right. It seems as if the connection is broken or somehow otherwise causing
libssh2 to not want to continue anymore. Are you using a recent libssh2
version?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-20