From owner-freebsd-bugs@FreeBSD.ORG Fri May 14 04:00:48 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC71216A4CE for ; Fri, 14 May 2004 04:00:48 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A832343D54 for ; Fri, 14 May 2004 04:00:48 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i4EB0mCi078104 for ; Fri, 14 May 2004 04:00:48 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4EB0lcC077614; Fri, 14 May 2004 04:00:47 -0700 (PDT) (envelope-from gnats) Date: Fri, 14 May 2004 04:00:47 -0700 (PDT) Message-Id: <200405141100.i4EB0lcC077614@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Maxim Konovalov Subject: Re: misc/66629: socket connecting with itself (race condition?) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maxim Konovalov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 11:00:49 -0000 The following reply was made to PR misc/66629; it has been noted by GNATS. From: Maxim Konovalov To: Fabien MENEMENLIS Cc: bug-followup@freebsd.org Subject: Re: misc/66629: socket connecting with itself (race condition?) Date: Fri, 14 May 2004 14:58:17 +0400 (MSD) On Fri, 14 May 2004, 03:43-0700, Fabien MENEMENLIS wrote: > > >Number: 66629 > >Category: misc > >Synopsis: socket connecting with itself (race condition?) [...] > >Environment: > FreeBSD huge.dir.com 4.9-STABLE FreeBSD 4.9-STABLE #2: Fri Mar 5 15:58:16 CET 2004 fabien@huge.iliad.fr:/usr/obj/usr/src/sys/DUAL i386 > > >Description: > When connecting to a closed local port in PF_INET space with many clients, it happens once in a while that connect() succeeds. The output of netstat -A for the given connection is then: > ea2c0e40 tcp4 0 0 localhost.4555 localhost.4555 ESTABLISHED It's expected behaviour called "simultaneous open". > I've not been able to reproduce the problem on a 5.2.1 environment. Probably due to differences in portranges between HEAD and RELENG_4. [...] -- Maxim Konovalov