Searched refs:hostcache (Results 1 – 10 of 10) sorted by relevance
/third_party/curl/lib/ |
D | hostip.c | 219 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 …]
|
D | share.c | 46 Curl_init_dnscache(&share->hostcache, 23); in curl_share_init() 228 Curl_hash_destroy(&share->hostcache); in curl_share_cleanup()
|
D | share.h | 47 struct Curl_hash hostcache; member
|
D | multihandle.h | 116 struct Curl_hash hostcache; member
|
D | multi.c | 387 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);
|
D | conncache.c | 548 connc->closure_handle->dns.hostcache); in Curl_conncache_close_all_connections()
|
D | setopt.c | 2266 data->dns.hostcache = NULL; in Curl_vsetopt() 2305 data->dns.hostcache = &data->share->hostcache; in Curl_vsetopt()
|
D | urldata.h | 1937 struct Curl_hash *hostcache; member
|
/third_party/curl/tests/unit/ |
D | unit1609.c | 145 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1); 203 Curl_hash_destroy(&multi->hostcache);
|
D | unit1607.c | 143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
|