From owner-freebsd-java Fri Aug 14 05:27:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA14061 for freebsd-java-outgoing; Fri, 14 Aug 1998 05:27:46 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from osprey.grizzly.com (osprey.grizzly.com [209.133.20.178]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA14053; Fri, 14 Aug 1998 05:27:43 -0700 (PDT) (envelope-from markd@Grizzly.COM) Received: (from markd@localhost) by osprey.grizzly.com (8.8.8/8.8.5) id FAA04877; Fri, 14 Aug 1998 05:27:44 -0700 (PDT) Date: Fri, 14 Aug 1998 05:27:44 -0700 (PDT) Message-Id: <199808141227.FAA04877@osprey.grizzly.com> From: Mark Diekhans To: freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG Subject: ServerSocket broken in jdk1.1.6.V98-7-21 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. 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. Is there a new release planned? Thanks, Mark import java.net.*; import java.io.*; public class SocketBug { static final int PORT = 2222; public static void main(String[] args) throws IOException { ServerSocket ss = new ServerSocket(PORT, 5); System.out.print("To test, connect to " + PORT + " ... "); Socket s = ss.accept(); System.out.println("connected"); s.close(); ss.close(); System.out.print("Ok setting up socket again " + PORT + " ... "); ss = new ServerSocket(PORT, 5); s = ss.accept(); System.out.println("connected"); s.close(); ss.close(); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message