curl-library
Re: DNS cache size control
Date: Fri, 19 Apr 2002 12:07:11 +0800
On Thursday 18 April 2002 16:19, Daniel Stenberg wrote:
> On Wed, 17 Apr 2002, Jacky Lam wrote:
> > > > I solve the second problem by using an adaptive buffer size which
> > > > reduce the dns cache size to 1/10 of the original.
> > >
> > > Sounds clever and good. Does it make a good fix for others to see too?
> >
> > The patch is simple and easy to make for others to work. But I am
> > busy for my school work this week. If you don't mind, I will tidy up the
> > patch and send to you next week.
>
> I certainly don't mind at all. I'm in no hurry!
Here is a patch to use adaptive buffer size in DNS cache. However,
i) I haven't test Solaris through I make changes to it.
ii) I can't find man page of gethostbyname_r in AIX platform, so it is just
the same as before.
Jacky
- text/x-diff attachment: hostip.c.patch