From owner-freebsd-hackers Sun Nov 8 11:45:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12798 for freebsd-hackers-outgoing; Sun, 8 Nov 1998 11:45:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alive.znep.com (207-178-54-226.go2net.com [207.178.54.226] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12793 for ; Sun, 8 Nov 1998 11:45:40 -0800 (PST) (envelope-from marcs@znep.com) Received: from localhost (marcs@localhost) by alive.znep.com (8.9.1/8.9.1) with ESMTP id LAA07689; Sun, 8 Nov 1998 11:37:37 -0800 (PST) (envelope-from marcs@znep.com) Date: Sun, 8 Nov 1998 11:37:37 -0800 (PST) From: Marc Slemko To: Brian Somers cc: freebsd-hackers@FreeBSD.ORG Subject: Re: bind()/listen() race In-Reply-To: <199811081014.KAA23159@woof.lan.awfulhak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 8 Nov 1998, Brian Somers wrote: > If I create a local domain socket with bind(), there's a period > between that and the listen() where a connect() will fail. Is there > any way to circumvent the problem ? Why is it a problem to have connects fail before you listen() but not a problem to have them fail before you bind()? I'm not sure I see the race condition. Once you listen(), you can accept connections. Before you listen(), you can't. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message