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

Re: glibc's getaddrinfo() sort order



On Sun, Sep 23, 2007 at 04:00:44PM +0200, Florian Weimer wrote:
> * Clint Adams:
> > I have heard, though not confirmed first-hand, that modern
> > versions of FreeBSD, Windows, and Solaris do as well.
> FreeBSD 6.2-RELEASE doesn't do it.   [...]

Code:

  09:59 <aj> import socket
  09:59 <aj> k = [ socket.getaddrinfo("rule9.erisian.com.au", "http")[0][4][0]                        for blah in range(1000) ]
  09:59 <aj> print dict([ (l, k.count(l)) for l in k ])

FreeBSD 6.2, Jan 2007: stable, but not rule 9

  10:00 <gjb> {'96.96.96.96': 1000}
  10:00 <aj> what os?
  10:00 <gjb> Python 2.4.3 (#2, Nov  8 2006, 23:56:15) 
  10:00 <gjb> FreeBSD 6.2-RELEASE-p5 i386 SMP-GENERIC
  10:34 <gjb> aj: it was 172.16.x.x, nat'd behind 203.y.y.y

Fedora Core 5, March 2005: stable

  10:02 <Jerub> {'128.128.128.128': 1000}
  10:03 <aj> jerub: os?
  10:03 <Jerub> aj: fedora core 5, behind a caching bind server.

Ubuntu 7.04, April 2007: rule 9

  10:06 <gjb> aj: {'160.160.160.160': 1000}
  10:06 <gjb> Python 2.5.1 (r251:54863, May  2 2007, 16:30:05) 
  10:07 <gjb> feisty

Debian 3.1, sarge (June 2005): not stable

  10:06 <saboteur> {'64.64.64.64': 60, '160.160.160.160': 80, ...
  10:08 <saboteur> debian 3.1 with 2.4 kernel

OS X 10.4 Tiger (April 2005): not stable

  10:06 <Jerub> {'64.64.64.64': 69, '32.32.32.32': 71, '96.96.96.96': ...
  10:08 <Jerub> Darwin shiny.lan 8.10.0 Darwin Kernel Version 8.10.0: Wed 
                May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC 
                Power Macintosh powerpc
  10:08 <aj> Jerub: what'sthat mean in human terms? :)
  10:08 <Jerub> aj: OSX.
  10:10 <Chip> aj: that's Tiger

Windows 2003: stable, but not rule 9

  {'64.64.64.64': 1000}

Cheers,
aj

Attachment: signature.asc
Description: Digital signature


Reply to: