Date: Wed, 15 Oct 2008 11:15:38 +0200 From: Benno Overeinder <benno@NLnetLabs.nl> To: freebsd-java@freebsd.org Subject: Re: Java and IPv6 on BSD - it does not work well Message-ID: <48F5B4BA.40209@NLnetLabs.nl> In-Reply-To: <200810141641.m9EGf4QG029110@post.behrens.de> References: <200810141641.m9EGf4QG029110@post.behrens.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On 10/14/08 6:41 PM, Frank Behrens wrote: > My conclusion: > It is very difficult or impossible to use the current (1.6.0) Java > implementation for server services if they should listen on IPv4 and > IPv6 addresses. With many BSD's default settings it is not even > possible to bind to a combined IPv4/IPv6 wildcard address. > > The current Sun Java implementation should be changed in a way, that > the socket is created with the right address family after the bind > address has been determined. > > > You can read the complete test description and my observations on > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html > > Do you agree or do you have other experiences? > [Note: I read the list, no Cc: necessary] Thank you for the extensive set of tests. On August 25th, 2008 I submitted a post to this email list describing problems with IPv6 and DNS SRV query type. Short summary, DNS SRV query type works fine with IPv4 on FreeBSD, but with IPv6 enabled JRE on FreeBSD, DNS SRV query types result in a DNS error [Root exception is java.io.IOException: Invalid argument]. From what I can deduce, with IPv6 it tries to resolve _xmpp-server._tcp.google.com as an ordinary A (or quad A) query type (which indeed should give a DNS error), instead of the requested DNS SRV query type. The Java code does work correctly in IPv6 mode on Linux, Mac OS X, and Solaris. Maybe the error is a result of one of the basic operations that fail in your test suite. Best, -- Benno -- Benno J. Overeinder NLnet Labs http://www.nlnetlabs.nl/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48F5B4BA.40209>