Subject: Re: kern/17616: accept on a tcp socket loses options
To: Bill Studenmund <wrstuden@netbsd.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: tech-net
Date: 07/17/2002 18:09:25
In message <Pine.NEB.4.33.0207171240240.1973-100000@vespasia.home-net.internetco
nnect.net>Bill Studenmund writes:


>Turns out that the problem is that our code doesn't copy tcp options from
>the listening socket to the connected socket. As mentioned in the PR, this
>seems like a bug to me.

Bill,


As Jason said: please commit it, request a pullup for the 1.6 branch.
FWIW, FreeBSD now inherits TCP_NODELAY across accept() and has done
since approximately their 4.5 release; so compatibility with `the rest
of the BSD world' argues for it.

It does open a slippery-slope for inheriting other options, like
keepalive...  and once it becomes a per-socket option, the keepalive
interval.