From owner-freebsd-hackers Sun Jun 24 23: 9:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 7810437B405 for ; Sun, 24 Jun 2001 23:09:06 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id IAA85624; Mon, 25 Jun 2001 08:09:01 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Sean Chittenden Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: What happens to a connection between a select and accept... References: <20010624195910.A44590@rand.tgd.net> From: Dag-Erling Smorgrav Date: 25 Jun 2001 08:09:01 +0200 In-Reply-To: <20010624195910.A44590@rand.tgd.net> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sean Chittenden writes: > Quick question. Anyone know how gracefully the kernel handles a > socket connection that is killed by the client between a select and > accept call? I don't expect any problems, but I know there was a race > condition in Linux that caused all kinds of nasty bugs and problems. There was one in FreeBSD too. It's been fixed; accept(2) will return -1 and set errno to ECONNABORTED, which you'd know if you'd RTFM. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message