Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 72249 invoked from network); 7 Jun 2010 09:59:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 09:59:33 -0000 Received: (qmail 65637 invoked by uid 500); 7 Jun 2010 09:59:33 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 65510 invoked by uid 500); 7 Jun 2010 09:59:31 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 65500 invoked by uid 99); 7 Jun 2010 09:59:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 09:59:30 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnu.andrew.rocks@gmail.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-iw0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 09:59:25 +0000 Received: by iwn34 with SMTP id 34so3570130iwn.36 for ; Mon, 07 Jun 2010 02:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=NwR9ngzo3Hh7hGZw4ZSunvtwMl3Z29n/zXzNQaVBj7k=; b=cqmbK+udrIUIecj6E6jqXvMxTR0GFqsrNlKEzcKiHUyuTCcOB1HVwKLHrRMb46FPlM 8WVvo1Tn6JgQY3iXqPYlKKNW65Bf0knuIlAilrHTiNkAByfeVn82MZtzszJOW208mX43 C3UW0PNo1iR69oP4CjMITGbpp2HHPvLRSj19s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=rl2SkjE7GQrZFE04mK1bbAULlJzXe7z2VA1IA/5aTsvmReLui0pxFuFf8pvYOYXWMG UFAASM1c6ezTbwjEa1wVrhqjR7t9sFxnvAc0B9tP20zu2re/h0u5DVIeMcwVHAC1JLLH FSZwgyMWntkcxK9uZyFN9SxQqb9juCxK56Xkk= MIME-Version: 1.0 Received: by 10.231.169.74 with SMTP id x10mr4181766iby.121.1275904742978; Mon, 07 Jun 2010 02:59:02 -0700 (PDT) Sender: gnu.andrew.rocks@gmail.com Received: by 10.231.177.157 with HTTP; Mon, 7 Jun 2010 02:59:02 -0700 (PDT) In-Reply-To: <201006070948.o579mJee030551@d06av03.portsmouth.uk.ibm.com> References: <201006070948.o579mJee030551@d06av03.portsmouth.uk.ibm.com> Date: Mon, 7 Jun 2010 10:59:02 +0100 X-Google-Sender-Auth: BIVcdLf1ey33iOFta7HyCHAL2JU Message-ID: Subject: Re: [classlib] linux (and freebsd) socket test failures From: Andrew John Hughes To: dev@harmony.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 7 June 2010 10:48, Mark Hindess wrote: > > I recently started seeing quite a lot of socket test failures on my > main Debian Linux machine. =C2=A0It turns out that an upgrade of the netb= ase > package included a new file: > > =C2=A0/etc/sysctl.d/bindv6only.conf > > which sets the system configuration: > > =C2=A0net.ipv6.bindv6only =3D 1 > > which means that IPv6 bound sockets only accept IPv6 connections and not > IPv4 connections (w/address mapping). =C2=A0The expectation is that daemo= ns > wanting to accept both IPv6 and IPv4 connections bind twice. > > Then I had a Eureka! moment and remembered that I had some FreeBSD > changes that I had not committed yet because I was still getting socket > test failures when I had fixed everything that I thought was broken.... > and the pattern of failures was similar. =C2=A0Changing the equivalent > "net.inet6.ip6.v6only=3D0" seems to have fixed most of the remaining > issues. =C2=A0I'll tidy up these changes[0] and commit them shortly. > > For the time being I've changed this back on my machine (by editing the > above file and replacing the 1 with 0). =C2=A0However, I wonder if we sho= uld > be handling this in the classlib implementation. =C2=A0If we don't then u= sers > will experience a change in behaviour unless they change the system > default but changing the system default may have unintended consequences > for other applications. > > I believe it is possible to set the IPV6_V6ONLY socket option to avoid > the change in behaviour but for the moment, it looks like the RI is not > doing this so I guess we shouldn't either? > FYI, this problem has also been found with OpenJDK and patched (at least, in the Debian package so far). http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008866.htm= l > Regards, > =C2=A0Mark. > > [0] Mostly removing the many things that I tried that we not actually > =C2=A0 =C2=A0necessary ;-) > > > --=20 Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8