[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Processed: destruction of round-robin functionality is fucking up our mirrors and making Debian suck for many people, hence fixing this is a release-critical "wish"



On Sat, Dec 15, 2007 at 07:15:53PM -0800, Steve Langasek wrote:
> > > At the same time, I should just get off my ass and go find the resolving
> > > code in the applications (apt-get, rsync, ...), and then just run it to see
> > > how it works...
> 
> > I edited apt's methods/connect.cc:Connect() function after the line
> > saying "struct addrinfo *CurHost = LastHostAddr;" to do:
> 
> >    char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
> >    getnameinfo( CurHost->ai_addr, CurHost->ai_addrlen,
> >                         hbuf, sizeof(hbuf),           
> >                         sbuf, sizeof(sbuf),
> >                         NI_NUMERICHOST );
> >    char *msg;
> >    sprintf(msg, "\nUsing IP address: %s, with service %s\n", hbuf, sbuf);
> >    return _error->Error( msg );
> 
> > Then I ran it with a minimal sources.list file including only security.d.o:
> 
> You haven't mentioned here what versions of apt and glibc you're using, and
> whether you have any settings in /etc/gai.conf.

Oh, okay. That apt was apt-get source'd from sid, 0.7.9.
The machine is running etch, so it has libc6 2.3.6.ds1-13etch2.
/etc/gai.conf doesn't exist.

-- 
     2. That which causes joy or happiness.


Reply to: