From 5e259d7b237be1a4425f7853090fc3505934b520 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Sep 2022 15:51:13 +0200 Subject: [PATCH] pingpong: extend the response reading error with errno To help diagnosing the cause of the problem. See #9380 Closes #9443 --- lib/pingpong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pingpong.c b/lib/pingpong.c index 74a678a1a4..d4e6be98c4 100644 --- a/lib/pingpong.c +++ b/lib/pingpong.c @@ -330,7 +330,7 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data, else if(gotbytes <= 0) { keepon = FALSE; result = CURLE_RECV_ERROR; - failf(data, "response reading failed"); + failf(data, "response reading failed (errno: %d)", SOCKERRNO); } else { /* we got a whole chunk of data, which can be anything from one -- 2.47.3