added a library-wide interface for doing dns cache pruning, and no longer

make the pruning at each name lookup, only in Curl_done().
This commit is contained in:
Daniel Stenberg
2003-12-15 17:33:49 +00:00
parent 5b8852107b
commit 3788f25eac
3 changed files with 22 additions and 6 deletions

View File

@@ -77,6 +77,9 @@ void Curl_freeaddrinfo(Curl_addrinfo *freeaddr);
/* free cached name info */
void Curl_freednsinfo(void *freethis);
/* prune old entries from the DNS cache */
void Curl_hostcache_prune(struct SessionHandle *data);
#ifdef CURLDEBUG
void curl_freeaddrinfo(struct addrinfo *freethis,
int line, const char *source);