cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_DNS_CACHE_TIMEOUT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 May 2008 13:11:08 +0200 (CEST)

On Mon, 12 May 2008, wangjun wrote:

> I have a question while using CURLOPT_DNS_CACHE_TIMEOUT ,if we set it to -1
> (to make the cached entries remain forever),and after we transmit over ,thus
> ,Does it still valid after we use curl_easy_cleanup?

No, as the DNS cache is stored in the easy handle it gets killed too. Unless
you use the share interface to make it "live" outside of the easy handle

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-05-12