cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Aug 2009 20:15:59 +0200 (CEST)

On Tue, 4 Aug 2009, Wm.A.Stafford wrote:

> I am using curl to get a very large document, ~2.5MB, from a web service.
> curl always exits with the message: "curl: (56) Failure when receiving data
> from the peer" before the complete document has been obtained.
>
> The total and received columns usually contain 1046k when this happens but
> it has happened at least once when the columns contained 694k.
>
> A web search based on the error message did not tell me much. Does anyone
> know what is going on in this situation?

It's unfortunately not a lot more to tell. It means that the receiving failed,
the TCP connection broke. The reason for that goes beyond what we can tell...

If you're lucky, you can use -C - to continue the download.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-08-05