Searched refs:hostcache (Results 1 – 10 of 10) sorted by relevance
/curl/lib/ |
H A D | hostip.c | 214 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 D | share.h | 50 struct Curl_hash hostcache; member
|
H A D | share.c | 48 Curl_init_dnscache(&share->hostcache, 23); in curl_share_init() 237 Curl_hash_destroy(&share->hostcache); in curl_share_cleanup()
|
H A D | multihandle.h | 110 struct Curl_hash hostcache; member
|
H A D | multi.c | 409 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 D | setopt.c | 1577 data->dns.hostcache = NULL; in setopt_pointers() 1616 data->dns.hostcache = &data->share->hostcache; in setopt_pointers()
|
H A D | urldata.h | 1876 struct Curl_hash *hostcache; member
|
H A D | conncache.c | 672 Curl_hostcache_clean(cpool->idata, cpool->idata->dns.hostcache); in cpool_close_and_destroy_all()
|
/curl/tests/unit/ |
H A D | unit1609.c | 145 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
|
H A D | unit1607.c | 143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
|
Completed in 46 milliseconds