]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: remove infof() output for "still name resolving"
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jul 2023 15:41:54 +0000 (17:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jul 2023 21:55:21 +0000 (23:55 +0200)
The message does not help and might get spewed a lot during times.

Reported-by: yushicheng7788 on github
Fixes #11394
Closes #11529

lib/url.c

index e3e7f4507b78e756fe1812175b850100d7d329d8..73f2da4ba0fba8c55983c5984fb995cc034b7df6 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1150,16 +1150,11 @@ ConnectionExists(struct Curl_easy *data,
           continue;
         }
 
-        if(Curl_resolver_asynch()) {
-          /* primary_ip[0] is NUL only if the resolving of the name hasn't
-             completed yet and until then we don't re-use this connection */
-          if(!check->primary_ip[0]) {
-            infof(data, "Connection #%" CURL_FORMAT_CURL_OFF_T " is still "
-                        "name resolving, can't reuse",
-                  check->connection_id);
-            continue;
-          }
-        }
+        if(Curl_resolver_asynch() &&
+           /* primary_ip[0] is NUL only if the resolving of the name hasn't
+              completed yet and until then we don't re-use this connection */
+           !check->primary_ip[0])
+          continue;
       }
 
       if(!Curl_conn_is_connected(check, FIRSTSOCKET)) {