curl-library
Re: DNS cache time out problems
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Nov 2006 22:45:06 +0100 (CET)
Date: Fri, 3 Nov 2006 22:45:06 +0100 (CET)
On Fri, 3 Nov 2006, Frank Hempel wrote:
> I'm using c-ares-1.2.1, curl-7-13-0 on a linux platform
Any chance you could grab a more recent version to see if the problem
persists?
>> It defaults to 60 seconds, but if you set it to -1 it should never prune
>> entries from the cache. See curl/lib/hostip.c:Curl_hostcache_prune().
>
> Curl_hostcache_prune() calls Curl_hash_clean_with_criterium() which for each
> entry calls back to hostcache_timestamp_remove() to determine whether to
> remove it or not.
No, Curl_hostcache_prune() doesn't even try to prune if you've set the dns
cache timeout to -1.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-11-03