From owner-freebsd-java Sun Apr 23 17:42:51 2000 Delivered-To: freebsd-java@freebsd.org Received: from lyrisoft.com (cc577769-a.jrsycty1.nj.home.com [24.11.67.11]) by hub.freebsd.org (Postfix) with SMTP id 2D3F437BA9E for ; Sun, 23 Apr 2000 17:42:48 -0700 (PDT) (envelope-from taso@lyrisoft.com) Received: (qmail 694 invoked from network); 24 Apr 2000 00:42:47 -0000 Received: from unknown (HELO lyrisoft.com) (taso@192.168.1.10) by cc577769-a.jrsycty1.nj.home.com with SMTP; 24 Apr 2000 00:42:47 -0000 Message-ID: <39039886.9FDDD98E@lyrisoft.com> Date: Sun, 23 Apr 2000 20:42:46 -0400 From: Taso Lyristis X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: [Fwd: Socket bug and workaround example for FreeBSD JDK 1.2.2] Content-Type: multipart/mixed; boundary="------------30F514B27926DEB519422349" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------30F514B27926DEB519422349 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------30F514B27926DEB519422349 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <3903983F.45AE1A85@lyrisoft.com> Date: Sun, 23 Apr 2000 20:41:35 -0400 From: Taso Lyristis X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams Subject: Re: Socket bug and workaround example for FreeBSD JDK 1.2.2 References: <39037F2B.8E010E21@lyrisoft.com> <200004240036.SAA09319@nomad.yogotech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Nate Williams wrote: > > > The quick description of this bug is the following: When implementing a > > TCP/IP server, the native method java.net.SocketInputStream.socketRead() > > throws a SocketException: Resource temporarily unavailable instead of > > blocking until data becomes available. This breaks any Java code that > > depends on a blocking read from a socket's input stream. > > Can you give more detailed instructions on how to reproduce the bug? > Otherwise, I can assume that it works, since if I run the program no > errors are produced. > > Nate Try telnetting to the port that the server listens on. $ java Test1 2000 Then, in another window, $ telnet localhost 2000 As soon as the connection is establish, you'll see the exception in the console where Test1 is running. Taso --------------30F514B27926DEB519422349-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message