pingpong: extend the response reading error with errno

To help diagnosing the cause of the problem.

See #9380
Closes #9443
This commit is contained in:
Daniel Stenberg 2022-09-06 15:51:13 +02:00
parent 51083a197c
commit 5e259d7b23
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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