From owner-freebsd-java Fri Aug 14 08:00:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA07452 for freebsd-java-outgoing; Fri, 14 Aug 1998 08:00:45 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA07447; Fri, 14 Aug 1998 08:00:42 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id JAA26458; Fri, 14 Aug 1998 09:00:14 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA21482; Fri, 14 Aug 1998 09:00:11 -0600 Date: Fri, 14 Aug 1998 09:00:11 -0600 Message-Id: <199808141500.JAA21482@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mark Diekhans Cc: freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG Subject: Re: ServerSocket broken in jdk1.1.6.V98-7-21 In-Reply-To: <199808141227.FAA04877@osprey.grizzly.com> References: <199808141227.FAA04877@osprey.grizzly.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > ServerSocket no longer works correctly in the 1.1.6.V98-7-21. It appears > not to set SO_REUSEADDR. But it is setting it in the VM. I just verified this. setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, 4); > Thus attempts to reopen a server socket fails > until the kernel decides to recycle the port. This worked correctly > in 1.1.5.V98-2-8. The enclosed program demonstrates the problem. I agree, but I don't know what's going on. Here's the output of ktrace: 2235 java CALL setsockopt(0x6,0xffff,0x204,0xefbfd3f8,0x4) 2235 java RET setsockopt -1 errno 42 Protocol not available Hmm, that 0x204 should be 0x4......... It turns out that I had the attempts at a bugfix by a java member in the build tree, and I shouldn't have. I just ripped the code out, and things appear to work fine now. I guess that means I'll have to re-roll the release, but I don't know when I'll get time. (I'm busy today through the weekend, and into early next week). My 'hack' fix isn't a real release, and although it doesn't take alot of time to build a test release, doing it 'correctly' takes a bit a time. > Is there a new release planned? There is now. Thanks for pointing this out! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message