Add support for DNS cache timeouts via the CURLOPT_DNS_CACHE_TIMEOUT option.

The default cache timeout for this is 60 seconds, which is arbitrary and
completely subject to change :)
This commit is contained in:
Sterling Hughes
2002-01-08 04:26:47 +00:00
parent 87037136ef
commit 22ac08e06d
4 changed files with 63 additions and 14 deletions

View File

@@ -491,6 +491,9 @@ typedef enum {
/* Non-zero value means to use the global dns cache */
CINIT(DNS_USE_GLOBAL_CACHE, LONG, 91),
/* DNS cache timeout */
CINIT(DNS_CACHE_TIMEOUT, LONG, 92),
CURLOPT_LASTENTRY /* the last unusued */
} CURLoption;