From owner-freebsd-java@FreeBSD.ORG Fri Feb 17 23:04:13 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E72C16A420 for ; Fri, 17 Feb 2006 23:04:13 +0000 (GMT) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.FreeBSD.org (Postfix) with SMTP id 9915F43D45 for ; Fri, 17 Feb 2006 23:04:11 +0000 (GMT) (envelope-from arnej@pvv.ntnu.no) Received: (qmail 15063 invoked by uid 27959); 17 Feb 2006 23:04:09 -0000 Date: Sat, 18 Feb 2006 00:04:09 +0100 (CET) From: "Arne H. Juul" To: kurt@intricatesoftware.com In-Reply-To: <200602171054.11632.lists@intricatesoftware.com> Message-ID: References: <43F4F22F.1060402@europe.yahoo-inc.com> <200602171054.11632.lists@intricatesoftware.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@freebsd.org Subject: Re: SO_REUSEADDR should not also mean SO_REUSEPORT X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2006 23:04:13 -0000 On Fri, 17 Feb 2006, Kurt Miller wrote: >> I don't know why this code was put into the bsd jdk patches, it just >> seems plain wrong to me. It makes java subtly non-portable in a very >> strange manner; I suggest this code is removed. Below is the patch >> I'm currently using :-) > > Linux and Solaris don't have SO_REUSEPORT. I believe their > SO_REUSEADDR is equivalent to SO_REUSEADDR + SO_REUSEPORT > on bsd. no, that's not true. SO_REUSEADDR behaves the same on bsd, linux, and solaris. I don't know if there's any way on linux or solaris to get the behaviour that SO_REUSEPORT triggers on FreeBSD. - Arne H. J.