Date: Wed, 21 Apr 1999 22:57:48 -0700 From: David Greenman <dg@root.com> To: Alex Rousskov <rousskov@ircache.net> Cc: freebsd-net@FreeBSD.ORG Subject: Re: _Some_ acks delayed for 200 msec? Message-ID: <199904220557.WAA17004@implode.root.com> In-Reply-To: Your message of "Wed, 21 Apr 1999 23:46:00 MDT." <Pine.SGI.4.10.9904212338510.6184-100000@Meta-Bug>
next in thread | previous in thread | raw e-mail | index | archive | help
>On Wed, 21 Apr 1999, David Greenman wrote: > >> I'm not familiar with what your application is doing over the wire, so I >> can only speculate. It sounds to me as though TCP_NODELAY wasn't actually >> set properly on the socket. Keep in mind that this option is not inherited >> in the accept()'ed file descriptor and thus the option must be set on that >> descriptor and not on the listen() socket. > >Oof! I've trusted the accept(2) man page that says: > > The accept() argument extracts the first connection request > on the queue of pending connections, creates a new socket with the > same properties of s and allocates a new file descriptor for the > socket. > >Apparently, "same properties" does not include TCP_NODELAY! This is the classic behavior of BSD, but I nonetheless think it's a bug not to duplicate certain options (especially TCP_NODELAY). It should probably be fixed. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org Creator of high-performance Internet servers - http://www.terasolutions.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904220557.WAA17004>