diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-09-06 15:51:13 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-09-06 18:48:57 +0200 |
commit | 5e259d7b237be1a4425f7853090fc3505934b520 (patch) | |
tree | afbc64be3f44023bd827677d8360f2fbaa5d8d96 /lib/pingpong.c | |
parent | 51083a197c883fcf28f65c932f136bc9b6e807be (diff) | |
download | curl-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.c | 2 |
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 |