From owner-freebsd-bugs Mon Oct 14 16:22:37 2002 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 A33F137B401; Mon, 14 Oct 2002 16:22:36 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5287943EBE; Mon, 14 Oct 2002 16:22:36 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9ENMaCo009161; Mon, 14 Oct 2002 16:22:36 -0700 (PDT) (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9ENMaUD009157; Mon, 14 Oct 2002 16:22:36 -0700 (PDT) Date: Mon, 14 Oct 2002 16:22:36 -0700 (PDT) From: Ian Dowse Message-Id: <200210142322.g9ENMaUD009157@freefall.freebsd.org> To: bgadjev@verio.net, iedowse@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/34307: accept() fails after ECONNABORTED Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: accept() fails after ECONNABORTED State-Changed-From-To: open->feedback State-Changed-By: iedowse State-Changed-When: Mon Oct 14 16:18:33 PDT 2002 State-Changed-Why: Hi, in the code fragment you posted, you have not shown `sockaddr_len' being reset to sizeof(server) each time before you call accept(). Could this be the cause of the behaviour you saw? From accept(2): The addrlen is a value-result parameter; it should initially contain the amount of space pointed to by addr; on return it will contain the actual length (in bytes) of the address returned. It looks as if accept() may reset this value-result parameter to zero on errors. http://www.freebsd.org/cgi/query-pr.cgi?pr=34307 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message