Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 8580 invoked from network); 25 Aug 2005 13:25:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2005 13:25:19 -0000 Received: (qmail 16110 invoked by uid 500); 25 Aug 2005 13:25:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 16058 invoked by uid 500); 25 Aug 2005 13:25:14 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 16045 invoked by uid 99); 25 Aug 2005 13:25:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2005 06:25:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [82.195.144.76] (HELO loughan.stdlib.net) (82.195.144.76) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2005 06:25:30 -0700 Received: from colmmacc by loughan.stdlib.net with local (Exim 4.50) id 1E8HjD-0000Ss-EZ for dev@httpd.apache.org; Thu, 25 Aug 2005 14:25:11 +0100 Date: Thu, 25 Aug 2005 14:25:11 +0100 From: Colm MacCarthaigh To: dev@httpd.apache.org Subject: Re: 2.1.7 Available for Testing & Voting Message-ID: <20050825132511.GA1545@stdlib.net> Reply-To: colm@stdlib.net References: <43078404.6030608@force-elite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thu, Aug 25, 2005 at 09:09:18AM -0400, Jeff Trawick wrote: > > Apache may fail to initialize on AIX with a generic Listen directive > > e.g. "Listen 10101" -> > > > > (67)Address already in use: make_sock: could not bind to address [::]:10101 > > I don't know why this would be AIX-specific. > > Server is configured with --enable-v4-mapped (default on most > systems), which is supposed to mean "just get one darn socket and > handle both IPv4 and IPv6 traffic to that port on that socket". > > apr_sockaddr_info_get() is hard-coded (no control) to return a list of > possible listening socket addresses when called from alloc_listener(). > So we get IPv4 and IPv6 address back. > > In later make_sock for the IPv4 address, we set up the IPv4 socket > fine. In make_sock for the IPv6 address, since we're supposed to be > capable of mapped addresses, we set IPV6_V6ONLY to 0. So the bind > fails since there is overlap. The IPv4 address is bound to before the IPv6 one? Sounds like getaddrinfo(AI_PASSIVE) is returning the addresses in an order which is unexpected. RFC3493 says nothing about order of the list returned, so if AIX is doing this, it's technically not a bug (though it differs from every other implementation on the planet). Re-ordering the list may be neccessary. -- Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net