From owner-freebsd-emulation Wed Jan 7 16:18:04 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA28110 for emulation-outgoing; Wed, 7 Jan 1998 16:18:04 -0800 (PST) (envelope-from owner-freebsd-emulation) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA28079 for ; Wed, 7 Jan 1998 16:17:34 -0800 (PST) (envelope-from pb@fasterix.frmug.org) Received: (from uucp@localhost) by frmug.org (8.8.8/frmug-2.2/nospam) with UUCP id BAA27544; Thu, 8 Jan 1998 01:17:09 +0100 (CET) (envelope-from pb@fasterix.frmug.org) Received: (from pb@localhost) by fasterix.frmug.org (8.8.8/8.8.5/pb-19970302) id BAA08461; Thu, 8 Jan 1998 01:10:58 +0100 (CET) Message-ID: <19980108011058.AW19380@@> Date: Thu, 8 Jan 1998 01:10:58 +0100 From: pb@fasterix.freenix.org (Pierre Beyssac) To: mike@smith.net.au (Mike Smith) Cc: emulation@freebsd.org Subject: Re: playing with the Linux JDK 1.1.3 under -current References: <19980107015053.TL50316@@> <199801070630.RAA00809@word.smith.net.au> X-Mailer: Mutt 0.59.1e Mime-Version: 1.0 In-Reply-To: <199801070630.RAA00809@word.smith.net.au>; from Mike Smith on Jan 7, 1998 17:00:37 +1030 Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Mike Smith writes: > > It all looks like subtle differences in the handling of non-blocking > > sockets between Linux and FreeBSD. Does anyone know about any such > > I think the correct answer is "please tell us when you have fixes". 8) Ok :-) I've been able to confirm the difference is in connect() error codes. On Linux, repeated connect() calls on the same non-blocking socket return EINPROGRESS as long as the connection is pending, then 0 exactly once, then EISCONN. FreeBSD (and SunOS) return EISCONN instead of 0 when the connection is completed. I have to improve my fix somewhat before I send it to you for commit, so that it ignores EISCONN only when in non-blocking mode. It still won't not be entirely correct because it should ignore EISCONN exactly once and I have no idea how to achieve that simply. Anyway, it's probably not desirable to have a 100% Linux behaviour on that one, as the code would be needlessly twisted :-) -- Pierre Beyssac pb@fasterix.frmug.org pb@fasterix.freenix.org {Free,Net,Open}BSD, Linux : il y a moins bien, mais c'est plus cher Free domains: http://www.eu.org/ or mail dns-manager@EU.org