From owner-freebsd-java@FreeBSD.ORG Tue Oct 14 16:41:10 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B07FE106568B for ; Tue, 14 Oct 2008 16:41:10 +0000 (UTC) (envelope-from frank@harz.behrens.de) Received: from post.behrens.de (post.behrens.de [IPv6:2a01:170:1023::1:2]) by mx1.freebsd.org (Postfix) with ESMTP id 13A268FC1A for ; Tue, 14 Oct 2008 16:41:09 +0000 (UTC) (envelope-from frank@harz.behrens.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=behrens.de; h=from:to:date:mime-version:subject:reply-to:content-type:content-transfer-encoding:content-description; s=pinky1; t=1224002466; i=frank@harz.behrens.de; bh=kx6fSrVqMgOmEw6768nunsNPW+Vmi6qkgMsyojtvJGY=; b=qxXBuYWGx2FmZHUw3Vrj7r6Hr8+52liLvT3ifVIZao/G5BnK5AkezUrYd8o8+DFUYndNg9QOfW72fvUVB07LCQ== Received: from sun.behrens ([IPv6:2a01:170:1023:0:894b:3296:412a:e455]) by post.behrens.de (8.14.2/8.14.2) with ESMTP-MSA id m9EGf4QG029110 for ; Tue, 14 Oct 2008 18:41:04 +0200 (CEST) (envelope-from frank@harz.behrens.de) Message-Id: <200810141641.m9EGf4QG029110@post.behrens.de> From: "Frank Behrens" To: freebsd-java@freebsd.org Date: Tue, 14 Oct 2008 18:41:04 +0200 MIME-Version: 1.0 Priority: normal X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Hashcash: 1:23:081014:freebsd-java@freebsd.org::iSWrQHQ+a5jDrnuS:000000000B/JE Subject: Java and IPv6 on BSD - it does not work well X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-java@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 16:41:10 -0000 Some weeks ago I tried to setup a tomcat server with IPv4 and IPv6 on my FreeBSD server and observed some problems. This was the starting point to make a short research about the Java(tm) IPv6 implementation and something seems to be wrong. 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] Regards, Frank -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available.