cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: CURLOPT_DNS_CACHE_TIMEOUT

From: wangjun <wangjun_at_nextbase.cn>
Date: Tue, 13 May 2008 11:15:54 +0800

Thanks for you reply,and I have another two question:
first question is about the CURLOPT_CONNECTTIMEOUT ,Does it include the DNS resolv time,or just is time between DNS resolv success to connect over;
second question :can we set timeout of DNS resolv like CURLOPT_CONNECTTIMEOUT .
发件人: Daniel Stenberg
发送时间: 2008-05-12 19:18:05
收件人: libcurl development
抄送:
主题: Re: CURLOPT_DNS_CACHE_TIMEOUT

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-13