Home
last modified time | relevance | path

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

/curl/lib/
H A Dhostip.c214 hostcache_prune(struct Curl_hash *hostcache, int cache_timeout, in hostcache_prune() argument
223 Curl_hash_clean_with_criterium(hostcache, in hostcache_prune()
240 if(!data->dns.hostcache) in Curl_hostcache_prune()
251 time_t oldest = hostcache_prune(data->dns.hostcache, timeout, now); in Curl_hostcache_prune()
261 (Curl_hash_count(data->dns.hostcache) > MAX_DNS_CACHE_SIZE)); in Curl_hostcache_prune()
288 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
295 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
309 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
335 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
515 dns2 = Curl_hash_add(data->dns.hostcache, entry_id, entry_len + 1, in Curl_cache_addr()
[all …]
H A Dshare.h50 struct Curl_hash hostcache; member
H A Dshare.c48 Curl_init_dnscache(&share->hostcache, 23); in curl_share_init()
237 Curl_hash_destroy(&share->hostcache); in curl_share_cleanup()
H A Dmultihandle.h110 struct Curl_hash hostcache; member
H A Dmulti.c409 Curl_init_dnscache(&multi->hostcache, dnssize); in Curl_multi_handle()
448 Curl_hash_destroy(&multi->hostcache); in Curl_multi_handle()
549 if(!data->dns.hostcache || in curl_multi_add_handle()
551 data->dns.hostcache = &multi->hostcache; in curl_multi_add_handle()
842 data->dns.hostcache = NULL; in curl_multi_remove_handle()
3106 Curl_hostcache_clean(data, data->dns.hostcache);
3107 data->dns.hostcache = NULL;
3125 Curl_hash_destroy(&multi->hostcache);
H A Dsetopt.c1577 data->dns.hostcache = NULL; in setopt_pointers()
1616 data->dns.hostcache = &data->share->hostcache; in setopt_pointers()
H A Durldata.h1876 struct Curl_hash *hostcache; member
H A Dconncache.c672 Curl_hostcache_clean(cpool->idata, cpool->idata->dns.hostcache); in cpool_close_and_destroy_all()
/curl/tests/unit/
H A Dunit1609.c145 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
H A Dunit1607.c143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);

Completed in 41 milliseconds