]> granicus.if.org Git - curl/commitdiff
RESOLVE: output verbose text when trying to set a duplicate name
authorDaniel Stenberg <daniel@haxx.se>
Sat, 9 Dec 2017 23:41:57 +0000 (00:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 9 Dec 2017 23:41:57 +0000 (00:41 +0100)
... to help users understand what is or isn't done!

lib/hostip.c

index ee2d4d2b560648f049c2c3450a260cecc4d69f91..886aeec4229da7b44642166555cc9e4371e02585 100644 (file)
@@ -877,9 +877,12 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
           dns->inuse--;
         }
       }
-      else
+      else {
         /* this is a duplicate, free it again */
+        infof(data, "RESOLVE %s:%d is already cached, %s not stored!\n",
+              hostname, port, address);
         Curl_freeaddrinfo(addr);
+      }
 
       if(data->share)
         Curl_share_unlock(data, CURL_LOCK_DATA_DNS);