]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pingpong: extend the response reading error with errno
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Sep 2022 13:51:13 +0000 (15:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Sep 2022 16:48:57 +0000 (18:48 +0200)
To help diagnosing the cause of the problem.

See #9380
Closes #9443

lib/pingpong.c

index 74a678a1a42f8cdc593ef7ea9519dea8ed1025dd..d4e6be98c47b3fbb1eb31b3ea5d28583b1587687 100644 (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