From owner-freebsd-hackers Tue Aug 11 13:46:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA01457 for freebsd-hackers-outgoing; Tue, 11 Aug 1998 13:46:09 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA01363 for ; Tue, 11 Aug 1998 13:45:59 -0700 (PDT) (envelope-from eranian@cello.hpl.hp.com) Received: from cello.hpl.hp.com (cello.hpl.hp.com [15.4.89.103]) by palrel1.hp.com (8.8.6/8.8.5tis) with ESMTP id NAA29902; Tue, 11 Aug 1998 13:45:23 -0700 (PDT) Received: (from eranian@localhost) by cello.hpl.hp.com (8.7.1/8.7.1) id NAA16194; Tue, 11 Aug 1998 13:45:22 -0700 (PDT) From: Stephane Eranian Message-Id: <199808112045.NAA16194@cello.hpl.hp.com> Subject: Re: Loosing socket options on new connections... In-Reply-To: from Marc Slemko at "Aug 11, 98 12:22:09 pm" To: marcs@znep.com (Marc Slemko) Date: Tue, 11 Aug 1998 13:45:22 -0700 (PDT) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Tue, 11 Aug 1998, Stephane Eranian wrote: > > > Hi, > > > > I recently notice that when you get a new connection on a listen > > socket the flags for the "master socket" simply vanish from the cloned > > socket (service socket). This is really annoying for flags like > > TCP_NODELAY, ie TF_NODELAY (ie user-settable flags via setsockopt()). > > The traditional behaviour (not just FreeBSD) has been that only SO_DEBUG, > SO_DONTROUTE, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF and > SO_SNDBUF are inherited. > > A program shouldn't expect others to be inherited, although this is > somewhat ill-defined by the specs. I don't think it is really the good behavior or you have many bogus Oses out there: like Linux, HPUX9/10/11 ... (not to say that they are the best, but). By the way, what is the specs you refering to ? +--------------------------------------------------------------------+ | Ste'phane ERANIAN | Email eranian@hpl.hp.com | | Hewlett-Packard Laboratories | | | 1501, Page Mill Road MS 1U-15 | | | Palo Alto, CA 94303-096 | | | USA | | | Tel : (650) 857-7174 | | | Fax : (650) 857-5548 | | +--------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message