cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: DNS cache size control

From: Jacky Lam <sylam_at_emsoftltd.com>
Date: Wed, 17 Apr 2002 15:27:03 +0800

    It seems only kept in memory.

Jacky

----- Original Message -----
From: "Phil Stevens" <ozzigold_at_hotmail.com>
To: <curl-library_at_lists.sourceforge.net>
Sent: Wednesday, April 17, 2002 3:06 PM
Subject: Re: DNS cache size control

>
> Hi,
>
> Whereabouts in linux is the file that stores the libcurl cache?
>
>
> Thanks.
>
>
> >
> > Is it possible to add some control on DNS cache size? Especially, the
> >global
> >one? I use global size and run through 150 websites and fnd that the dns
> >cache size grow to more than 6M!!! There are two reasons:
> > i) Libcurl won't remove some old expired dns cache
> > ii) Libcurl will alloc 9000bytes to hold dns answer. However, normally,
it
> >just use 500-600bytes. (on Linux with gethostbyname_r).
> >
> > I solve the second problem by using an adaptive buffer size which reduce
> >the
> >dns cache size to 1/10 of the original. For the first problem, I can
only
> >destroy all handles and call global_cleanup. Is there any alternative?
> >
> >Jacky
> >
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
Received on 2002-04-17