From owner-freebsd-current@FreeBSD.ORG Fri May 6 02:39:03 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B751516A4CE for ; Fri, 6 May 2005 02:39:03 +0000 (GMT) Received: from thought.holo.org (h-68-166-32-19.snvacaid.covad.net [68.166.32.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5447543D5D for ; Fri, 6 May 2005 02:39:03 +0000 (GMT) (envelope-from bwb@holo.org) Received: from localhost (localhost [127.0.0.1]) by thought.holo.org (8.13.1/8.13.1) with ESMTP id j462d2GA060910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 May 2005 19:39:02 -0700 (PDT) (envelope-from bwb@holo.org) Date: Thu, 5 May 2005 19:39:02 -0700 (PDT) From: Brian Buchanan X-X-Sender: brian@thought.holo.org To: "J.R. Oldroyd" In-Reply-To: <20050506023318.GK51983@linwhf.opal.com> Message-ID: <20050505193739.Y36831@thought.holo.org> References: <20050506023318.GK51983@linwhf.opal.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-current@freebsd.org Subject: Re: async connect problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 02:39:03 -0000 On Thu, 5 May 2005, J.R. Oldroyd wrote: > Isn't our behaviour wrong... > > On 6-current, the program below prints: > connect: Connection refused > > Shouldn't it print: > connect: Operation now in progress No, that's the correct behavior. The system was able to satisfy your request without blocking because you were attempting a connection to the loopback, so connect() returned immediately with errno == ECONNREFUSED. - Brian