diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-07 15:39:43 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-04-11 22:22:39 +0200 |
commit | f73de32d469919478fba65b5f4fda6212dc730cd (patch) | |
tree | 81ca14e84a83ba488d01bf9bed08a559f1c17785 /lib/multi.c | |
parent | ebc055011045510bee71043fb6a3a0dac6dca42d (diff) | |
download | curl-f73de32d469919478fba65b5f4fda6212dc730cd.tar.gz |
CURLOPT_DNS_USE_GLOBAL_CACHE: remove
Remove the code too. The functionality has been disabled in code since
7.62.0. Setting this option will from now on simply be ignored and have
no function.
Closes #3654
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/multi.c b/lib/multi.c index 500c24229..2ebc56255 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -402,19 +402,9 @@ CURLMcode curl_multi_add_handle(struct Curl_multi *multi, /* set the easy handle */ multistate(data, CURLM_STATE_INIT); - if((data->set.global_dns_cache) && - (data->dns.hostcachetype != HCACHE_GLOBAL)) { - /* global dns cache was requested but still isn't */ - struct curl_hash *global = Curl_global_host_cache_init(); - if(global) { - /* only do this if the global cache init works */ - data->dns.hostcache = global; - data->dns.hostcachetype = HCACHE_GLOBAL; - } - } /* for multi interface connections, we share DNS cache automatically if the easy handle's one is currently not set. */ - else if(!data->dns.hostcache || + if(!data->dns.hostcache || (data->dns.hostcachetype == HCACHE_NONE)) { data->dns.hostcache = &multi->hostcache; data->dns.hostcachetype = HCACHE_MULTI; |