1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

RESOLVE: output verbose text when trying to set a duplicate name

... to help users understand what is or isn't done!
This commit is contained in:
Daniel Stenberg 2017-12-10 00:41:57 +01:00
parent bbea75ad69
commit b1b94305d8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -877,9 +877,12 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
dns->inuse--; dns->inuse--;
} }
} }
else else {
/* this is a duplicate, free it again */ /* 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); Curl_freeaddrinfo(addr);
}
if(data->share) if(data->share)
Curl_share_unlock(data, CURL_LOCK_DATA_DNS); Curl_share_unlock(data, CURL_LOCK_DATA_DNS);