Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2002 16:22:36 -0700 (PDT)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        bgadjev@verio.net, iedowse@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: misc/34307: accept() fails after ECONNABORTED
Message-ID:  <200210142322.g9ENMaUD009157@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




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