From owner-freebsd-hackers Thu Nov 21 12:10:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A824C37B401 for ; Thu, 21 Nov 2002 12:10:15 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id A543243E88 for ; Thu, 21 Nov 2002 12:10:14 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2002112120101200100gp20ce>; Thu, 21 Nov 2002 20:10:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA04777; Thu, 21 Nov 2002 12:02:21 -0800 (PST) Date: Thu, 21 Nov 2002 12:02:20 -0800 (PST) From: Julian Elischer To: "David G. Andersen" Cc: hackers@freebsd.org Subject: Re: Changing socket buffer timeout to a u_long? In-Reply-To: <20021121123126.E75421@cs.utah.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 21 Nov 2002, David G. Andersen wrote: > Are there compelling reasons not to change the socket buffer > timeout to a u_long from a u_short? This variable stores > the number of ticks before the socket operation times out. > > At present, the maximum SO_RCVTIMEO or SO_SNDTIMEO value one > can set is SHRT_MAX / hz. With a 100Hz kernel, this comes > to about 330 seconds, but with a 1000Hz kernel or faster, > it's reduced to under 1 minute, which tends to break some > apps when running on a high-hz kernel. > > Particularly for weirdos who use HZ=10000 for dummynet purposes > and network measurement, increasing the storage to a u_long > would make life a bit happier for all sorts of code that wants > to set a 1 minute timeout. > > -Dave (not on -hackers anymore, please CC) I can see this in -current. In -stable I'm not sure of the ramifications. It might screw up any proprietary loadable protocols. I Think there are a couple of them. > > -- > work: dga@lcs.mit.edu me: dga@pobox.com > MIT Laboratory for Computer Science http://www.angio.net/ > I do not accept unsolicited commercial email. Do not spam me. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message