curl-library
Re: Can I Use CURLOPT_DNS_CACHE_TIMEOUT and CURL_LOCK_DATA_DNS at the same time£¿
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 Aug 2006 09:24:56 +0200 (CEST)
Date: Wed, 30 Aug 2006 09:24:56 +0200 (CEST)
On Wed, 30 Aug 2006, yeguo wu wrote:
> I want to start 200 threads to download pages use Libcurl.Who can tell
> me how to set the DNS Cache Timeout in the CURLOPT_SHARE,
Funnily enough, you set CURLOPT_DNS_CACHE_TIMEOUT with curl_easy_setopt() in
the easy handle and not in the share.
> Can I watch if the DNS Cache is working??
Only if you add some debug prints to the code or similar. The cache is always
in use.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-08-30