From owner-freebsd-hackers Wed Apr 3 15:02:20 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA00843 for hackers-outgoing; Wed, 3 Apr 1996 15:02:20 -0800 (PST) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA00838 for ; Wed, 3 Apr 1996 15:02:17 -0800 (PST) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id RAA00745; Wed, 3 Apr 1996 17:01:36 -0600 From: Joe Greco Message-Id: <199604032301.RAA00745@brasil.moneng.mei.com> Subject: Re: SO_KEEPALIVE - New feature patch enclosed. To: fenner@parc.xerox.com (Bill Fenner) Date: Wed, 3 Apr 1996 17:01:35 -0600 (CST) Cc: hackers@freebsd.org In-Reply-To: <96Apr3.143103pst.177475@crevenia.parc.xerox.com> from "Bill Fenner" at Apr 3, 96 02:30:58 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > While we're on this topic, someone asked in comp.protocols.tcp-ip about tuning > the keepalive timer[...] > [...] > We already have net.inet.tcp.{keepidle,keepintvl} but it might be worth > thinking about adding the TCP_KEEPALIVE socket option. Uh, uh, uh, HUH? Check the message you're replying to, for a patch that does precisely that. I created a "net.inet.tcp.keepalive", that if set to a nonzero value, sets the SO_KEEPALIVE flag on new sockets as they are created, on a systemwide basis. I think it's even done almost correctly. The intended application is ISP's and other sites where large numbers of session hangs may happen... > P.S. Is it documented anywhere that net.inet.tcp.{keepidle,keepintvl} are in > units of 500ms? Should it be? I did not see any such documentation. My keepalive mod is similarly undocumented... I have no idea where to document it. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968