Lines Matching defs:hostcache
161 * Create a hostcache id string for the provided host + port, to be used by
219 hostcache_prune(struct Curl_hash *hostcache, int cache_timeout,
228 Curl_hash_clean_with_criterium(hostcache,
245 if(!data->dns.hostcache)
246 /* NULL hostcache means we can't do it */
255 /* Remove outdated and unused entries from the hostcache */
256 time_t oldest = hostcache_prune(data->dns.hostcache, timeout, now);
265 } while(timeout && (data->dns.hostcache->size > MAX_DNS_CACHE_SIZE));
292 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1);
299 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1);
313 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1);
339 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1);
514 dns2 = Curl_hash_add(data->dns.hostcache, entry_id, entry_len + 1,
1142 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1);
1256 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1);
1272 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1);