Subject: Re: kern/17616: accept on a tcp socket loses options
To: Bill Studenmund <firstname.lastname@example.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
Date: 07/17/2002 18:09:25
In message <Pine.NEB.email@example.com
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.
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