From owner-freebsd-net Tue Jul 10 2:34:25 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail17.messagelabs.com (mail17.messagelabs.com [62.231.131.67]) by hub.freebsd.org (Postfix) with SMTP id A3F5437B410 for ; Tue, 10 Jul 2001 02:09:50 -0700 (PDT) (envelope-from rdls@satamatics.com) X-VirusChecked: Checked Received: (qmail 22575 invoked from network); 10 Jul 2001 08:58:26 -0000 Received: from smtp-8.star.net.uk (212.125.75.77) by server-13.tower-17.messagelabs.com with SMTP; 10 Jul 2001 08:58:26 -0000 Received: (qmail 12690 invoked from network); 10 Jul 2001 09:09:47 -0000 Received: from unallocated.star.net.uk (HELO dns.hq.satamatics.net) (62.231.144.3) by smtp-8.star.net.uk with SMTP; 10 Jul 2001 09:09:47 -0000 Received: from matrix.satamatics.net (matrix.satamatics.net [10.24.1.1]) by dns.hq.satamatics.net (8.11.3/8.11.3) with ESMTP id f6AACSE36031; Tue, 10 Jul 2001 10:12:28 GMT (envelope-from rdls@satamatics.com) Subject: RE: sysctls keepidle and keepintvl Date: Tue, 10 Jul 2001 10:06:57 +0100 Message-ID: <703AB71471B6024CB86D219058DB64FB021F0D@matrix.satamatics.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: sysctls keepidle and keepintvl X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Thread-Index: AcEJHpHhlnc9m8wLTa+kYNRwI7bVEgAAJhlA content-class: urn:content-classes:message From: "Richard Smith" To: "Ruslan Ermilov" Cc: Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > -----Original Message----- > From: Ruslan Ermilov [mailto:ru@FreeBSD.ORG] > Sent: 10 July 2001 10:02 > To: Richard Smith > Cc: net@FreeBSD.ORG > Subject: Re: sysctls keepidle and keepintvl >=20 >=20 > On Mon, Jul 09, 2001 at 11:05:13PM +0100, Richard Smith wrote: > > Please cc me, as I'm not on this list. > >=20 > > I am using 4.3-RELEASE, and investigating why I don't see > > any keepalives (using tcpdump) on my connections. > >=20 > > The default values are as follows: > > net.inet.tcp.keepidle =3D 7200000 > > net.inet.tcp.keepintvl =3D 75000 > >=20 > > It seems to me that the keepalive interval is being set > > by keepidle, thus setting keepidle =3D 20000, generates=20 > > keepalives at 20s intervals. > >=20 > > Looking at the comments in tcp_var.h, it should be=20 > > keepintvl that sets this interval. Otherwise, why > > have such a large value for keepidle? > >=20 > > Is this a bug? Or have I missed something, > >=20 > Only TCP sockets marked with SO_KEEPALIVE setsockopt(2) will > be kept alive. Alternatively, you can enable this option on > all sockets implicitly by net.inet.tcp.always_keepalive=3D1. > (Or by setting tcp_keepalive rc.conf(5) variable to "YES"). Thanks, keepalive _was_ enabled, it just has a long default=20 idle time (120 minutes) before it starts doing anything. I=20 guess they didn't have firewalls with dynamic rules in those days :-) Rich. _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message