Re: squid-3.HEAD IPAddress leak

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 8 Feb 2008 06:52:31 +0900

Have you tried running valgrind?

Also, wait. What exactly are you using addr_info for? Can you explain it
to me?

There's a netural sock addr size type - its called sockaddr_storage.
addr_info is for return results from hostname<->ip queries..

Adrian

On Fri, Feb 08, 2008, Amos Jeffries wrote:
> > On Thu, Feb 07, 2008, Robert Collins wrote:
> >
> >> > Still, this is one of those "death of a thousand cuts" method of
> >> > killing performance..
> >>
> >> Right, I haven't seen the commit; care to mail the diff?
> >
> > Which? I just looked at the places where Amos is calling GetAddrInfo()
> > and FreeAddrInfo(); more then one are:
> >
> > * GetAddrInfo(temp, );
> > * F->{something} = temp;
> > * FreeAddrInfo(temp);
>
> Where?!
>
> I hate addrinfo enough that I only added addrinfo where it needed:
>
> GetAddrInfo(temp)
> syscall_needing_neutral_sockaddr_size_family(temp)
> FreeAddrInfo(temp)
>
> OR:
>
> GetAddrInfo(temp)
> syscall_altering_addrinfo(temp)
> F->something = temp;
> FreeAddrInfo(temp)
>
>
> Amos
>

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Thu Feb 07 2008 - 14:40:43 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:09 MST