From owner-freebsd-java Tue Sep 4 14:45: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id 33FAC37B403 for ; Tue, 4 Sep 2001 14:45:02 -0700 (PDT) Received: from billh by gnuppy.monkey.org with local (Exim 3.32 #1 (Debian)) id 15eNzp-0001iP-00; Tue, 04 Sep 2001 14:44:37 -0700 Date: Tue, 4 Sep 2001 14:44:37 -0700 To: Fuyuhiko Maruyama Cc: Bill Huey , Mikhail Kruk , java@freebsd.org Subject: Re: jdk1.3.1 socket problem Message-ID: <20010904144437.A5743@gnuppy> References: <55lmk5czi0.wl@tripper.private> <20010831023820.A20158@gnuppy> <5566az81ts.wl@tripper.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5566az81ts.wl@tripper.private> User-Agent: Mutt/1.3.20i From: Bill Huey 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 On Tue, Sep 04, 2001 at 11:31:27PM +0900, Fuyuhiko Maruyama wrote: > Hi, I made a patch will solve the problem that connect() on > green_threads *almost always* fails. > > The problem is in caused by the logic at > `src/solaris/hpi/green_threads/src/iomgr.c'. We use non-blocking mode > socket and connect() wrapper in iomgr.c have a code to wait until > connection is established. At the end of waiting path, the codes > check whether the connection is really established using *the second* > syscall of connect, it will always fail because it is really the > second attempt of connect so EISCONN(errno == 56) may mean the fact > that conection is established. I'll check if this fixes the remote display problem after I rebuild X on my machine. I've been kind of dozing off on this the last couple of days and I wasn't even looking at the right subtree (native threads) when pounding on this stuff earlier this week. I guess I haven't made the mental transition from my BSD/OS project to FreeBSD yet and expected that native threading should work. ;-) That's pretty silly of me given that it was a pretty obvious bug to fix. If this is the last major bug outside of the threading system, then I'll work on native threading next. ;-) Thanks Fuyuhiko ;) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message