From owner-freebsd-java Mon Aug 27 8:29:21 2001 Delivered-To: freebsd-java@freebsd.org Received: from calliope.cs.brandeis.edu (calliope.cs.brandeis.edu [129.64.3.189]) by hub.freebsd.org (Postfix) with ESMTP id D2A5737B401 for ; Mon, 27 Aug 2001 08:29:17 -0700 (PDT) (envelope-from meshko@calliope.cs.brandeis.edu) Received: from localhost (meshko@localhost) by calliope.cs.brandeis.edu (8.9.3/8.9.3) with ESMTP id LAA17166 for ; Mon, 27 Aug 2001 11:29:16 -0400 Date: Mon, 27 Aug 2001 11:29:16 -0400 (EDT) From: Mikhail Kruk To: Subject: jdk1.3.1 socket problem In-Reply-To: <55lmk5czi0.wl@tripper.private> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org OK, my first bug report sucked, it wasn't really jdk's problem and workaround is trivial. But I'll try again. Please let me know if it is not yet time for bug reports and I'll shut up :) When I try to run the following code sample I get: java.net.SocketException: errno: 56, error: Socket is already connected for fd: 4 import java.net.*; public class test { public static void main(String[] args) { try { Socket socket = new Socket( "www.cs.brandeis.edu", 80); socket.close(); } catch(Exception e) { System.err.println(e); } } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message