Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 15:39:16 EDT
From:      "Greg Thompson" <johnnyteardrop@hotmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   odd accept(2) behavior
Message-ID:  <20000725193916.37721.qmail@hotmail.com>

next in thread | raw e-mail | index | archive | help
hackers,

i'm seeing some fairly odd behavior from accept(2) when the connecting 
socket goes away at just the right time.  the timing is fairly funky, so i 
don't know if i can easily whip up a repro for this, but what i'm seeing is:

accept returns a positive value (ie: not an error), but sets the addrlen to 
zero.  a subsequent call to getsockname with the new socket returns -1 and 
sets errno to ECONNRESET.

is this the expected behavior?  can someone explain?  i haven't observed 
this on any other platforms i've been hacking lately.

thanks.
--
                    -greg
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



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?20000725193916.37721.qmail>