Date: Tue, 25 Jul 2000 14:08:54 -0700 (PDT) From: Archie Cobbs <archie@whistle.com> To: Greg Thompson <johnnyteardrop@hotmail.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: odd accept(2) behavior Message-ID: <200007252108.OAA13311@bubba.whistle.com> In-Reply-To: <20000725193916.37721.qmail@hotmail.com> from Greg Thompson at "Jul 25, 2000 03:39:16 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Thompson writes: > 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. Everything sounds normal/expected except the part about addrlen being set to zero. That sounds like a bug. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.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?200007252108.OAA13311>