Skip site navigation (1)Skip section navigation (2)
Date:      25 Jun 2001 08:09:01 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Sean Chittenden <sean-freebsd-hackers@chittenden.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: What happens to a connection between a select and accept...
Message-ID:  <xzp1yo91476.fsf@flood.ping.uio.no>
In-Reply-To: <20010624195910.A44590@rand.tgd.net>
References:  <20010624195910.A44590@rand.tgd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Sean Chittenden <sean-freebsd-hackers@chittenden.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1yo91476.fsf>