curl / Mailing Lists / curl-library / Single Mail

curl-library

How to debug CURLE_RECV_ERROR (56) ?

From: Lars Schneider via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 11 Jul 2017 15:34:31 +0200

Hi,

my Git client makes SSL connections using libcurl and I observed
CURLE_RECV_ERROR (56) errors (failure with receiving network data)
as shown below.

I am pretty sure my network is to blame. Plus, Daniel pointed out that
curl cannot do anything about it [1].

I am a bit stuck as I don't know how to debug this further. What would
you do to find the problematic network component?

Thanks,
Lars

[1] https://curl.haxx.se/mail/lib-2005-01/0160.html

Example 1) On macOS 10.11.6 and Git 2.13.2 and libcurl 7.43.0

error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I think the error originates from here:
https://github.com/curl/curl/blob/c58063b4f828f47e4a7ed6c8c6cbd286d1162afc/lib/vtls/darwinssl.c#L2838

Example 2) On Windows 8.1 and Git 2.12.2.windows.2

* SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
* stopped the pause stream!
* Closing connection 0
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I think the error originates from here:
https://github.com/curl/curl/blob/c58063b4f828f47e4a7ed6c8c6cbd286d1162afc/lib/vtls/cyassl.c#L724

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-07-11