cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: DNS cache time out problems

From: Frank Hempel <lists_at_frankoni.net>
Date: Sat, 04 Nov 2006 07:00:54 +0100

Daniel Stenberg schrieb:
> 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?

I will do.

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

Indeed, I must had been totally blind. Just the first statement.

I will investigate further on and let you know when I find something...

Thanks so far.
Frank

>
Received on 2006-11-04