[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 Sun, Dec 16, 2007 at 03:45:37AM +0100, Josip Rodin wrote:
> On Sat, Dec 15, 2007 at 03:43:22PM +0100, Josip Rodin 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.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org


Reply to: