Home
last modified time | relevance | path

Searched refs:hostcache (Results 1 – 10 of 10) sorted by relevance

/third_party/curl/lib/
Dhostip.c219 hostcache_prune(struct Curl_hash *hostcache, int cache_timeout, in hostcache_prune() argument
228 Curl_hash_clean_with_criterium(hostcache, in hostcache_prune()
245 if(!data->dns.hostcache) in Curl_hostcache_prune()
256 time_t oldest = hostcache_prune(data->dns.hostcache, timeout, now); in Curl_hostcache_prune()
265 } while(timeout && (data->dns.hostcache->size > MAX_DNS_CACHE_SIZE)); in Curl_hostcache_prune()
292 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
299 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
313 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
339 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
514 dns2 = Curl_hash_add(data->dns.hostcache, entry_id, entry_len + 1, in Curl_cache_addr()
[all …]
Dshare.c46 Curl_init_dnscache(&share->hostcache, 23); in curl_share_init()
228 Curl_hash_destroy(&share->hostcache); in curl_share_cleanup()
Dshare.h47 struct Curl_hash hostcache; member
Dmultihandle.h116 struct Curl_hash hostcache; member
Dmulti.c387 Curl_init_dnscache(&multi->hostcache, dnssize); in Curl_multi_handle()
426 Curl_hash_destroy(&multi->hostcache); in Curl_multi_handle()
573 if(!data->dns.hostcache || in curl_multi_add_handle()
575 data->dns.hostcache = &multi->hostcache; in curl_multi_add_handle()
879 data->dns.hostcache = NULL; in curl_multi_remove_handle()
2848 Curl_hostcache_clean(data, data->dns.hostcache);
2849 data->dns.hostcache = NULL;
2870 Curl_hash_destroy(&multi->hostcache);
Dconncache.c548 connc->closure_handle->dns.hostcache); in Curl_conncache_close_all_connections()
Dsetopt.c2266 data->dns.hostcache = NULL; in Curl_vsetopt()
2305 data->dns.hostcache = &data->share->hostcache; in Curl_vsetopt()
Durldata.h1937 struct Curl_hash *hostcache; member
/third_party/curl/tests/unit/
Dunit1609.c145 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
203 Curl_hash_destroy(&multi->hostcache);
Dunit1607.c143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);