From 22ac08e06db32cb2a7872316a669eb81ec3ea204 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Tue, 8 Jan 2002 04:26:47 +0000 Subject: 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 :) --- include/curl/curl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 3d91c85ff..9059d1492 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -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; -- cgit v1.2.3