summaryrefslogtreecommitdiff
path: root/lib/pingpong.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-06 15:51:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-06 18:48:57 +0200
commit5e259d7b237be1a4425f7853090fc3505934b520 (patch)
treeafbc64be3f44023bd827677d8360f2fbaa5d8d96 /lib/pingpong.c
parent51083a197c883fcf28f65c932f136bc9b6e807be (diff)
downloadcurl-5e259d7b237be1a4425f7853090fc3505934b520.tar.gz
pingpong: extend the response reading error with errno
To help diagnosing the cause of the problem. See #9380 Closes #9443
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r--lib/pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index 74a678a1a..d4e6be98c 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