Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 8532 invoked from network); 7 Jun 2007 06:42:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 06:42:38 -0000 Received: (qmail 9839 invoked by uid 500); 7 Jun 2007 06:42:41 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 9444 invoked by uid 500); 7 Jun 2007 06:42:40 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 9433 invoked by uid 99); 7 Jun 2007 06:42:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 23:42:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [85.19.200.177] (HELO vawad.err.no) (85.19.200.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 23:42:34 -0700 Received: from 189.84-48-121.nextgentel.com ([84.48.121.189] helo=localhost.localdomain) by vawad.err.no with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.62) (envelope-from ) id 1HwBhD-0002Mf-7G; Thu, 07 Jun 2007 08:42:12 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 7EF24AB435; Thu, 7 Jun 2007 08:41:24 +0200 (CEST) From: Tollef Fog Heen To: dev@apr.apache.org Subject: Re: getaddrinfo on Ubuntu References: <46649707.6010808@rowe-clan.net> <4d45da050706051709xcb3c061gfe56c73223a24ffc@mail.gmail.com> <466650B1.4060203@rowe-clan.net> <4d45da050706060140v73014bdr9784afab278526bd@mail.gmail.com> <4d45da050706060439n45645cbexd5aaf6389df6ceb8@mail.gmail.com> <4d45da050706060806u645e636q4124f1d0c02cfbea@mail.gmail.com> <20070606185610.GA18044@redhat.com> <466706A3.6000002@haxent.com.br> <4d45da050706061257ueb6940ka4553a5f83bfd156@mail.gmail.com> <20070606211840.GB18044@redhat.com> Mail-Copies-To: never Mail-Followup-To: dev@apr.apache.org Date: Thu, 07 Jun 2007 08:41:24 +0200 In-Reply-To: <20070606211840.GB18044@redhat.com> (Joe Orton's message of "Wed, 6 Jun 2007 22:18:41 +0100") Message-ID: <878xawclm3.fsf@xoog.err.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: (score 0.0): Status=No hits=0.0 required=5.0 tests=none version=3.1.4 * Joe Orton | But yes, testsockets.c will need some tweaking to cope with this | getaddrinfo implementation. I think it's caused by an Ubuntu patch, if | I read https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/24828 | correctly. It might break some applications in fun ways too, but | there's not much APR can do about that. FWIW, I have yet to see any bug reports about anything breaking with this, except testsockets.c. What the glibc patch does is it only returns IPv6 addresses if they are explicitly requested by the application or you have an IPv6 address with a scope of < link (that is, if you have site or global scope address). The reason for the patch is lots of cheap DSL routers seem to just not respond to AAAA or A6 queries, so applications would try to resolve a name, glibc would send out an AAAA query, wait for it to time out, then send out an A request instead of just getting a NXDOMAIN or similar back immediately. So, it's a hack for brokenness in lots of software which is not Ubuntu's, but it makes the user experience much better without breaking IPv6 for those who actually use it. Whether it should treat numeric addresses specifically is something I had not considered; maybe it should. I would be happy to receive feedback on this. On the other hand, I would suspect the number of people keying in IPv6 addresses into their applications and not having a site or global IPv6 address to be fairly small so real-world breakage should be limited. -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are