From owner-freebsd-net Tue Jul 10 2:34:28 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id B9F1237B405 for ; Tue, 10 Jul 2001 02:01:51 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f6A91Un06470; Tue, 10 Jul 2001 12:01:30 +0300 (EEST) (envelope-from ru) Date: Tue, 10 Jul 2001 12:01:30 +0300 From: Ruslan Ermilov To: Richard Smith Cc: net@FreeBSD.ORG Subject: Re: sysctls keepidle and keepintvl Message-ID: <20010710120130.A5467@sunbay.com> Mail-Followup-To: Richard Smith , net@FreeBSD.ORG References: <20010709230512.A918@gaia.home.rdls.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010709230512.A918@gaia.home.rdls.net>; from rdls@satamatics.com on Mon, Jul 09, 2001 at 11:05:13PM +0100 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 On Mon, Jul 09, 2001 at 11:05:13PM +0100, Richard Smith wrote: > Please cc me, as I'm not on this list. > > I am using 4.3-RELEASE, and investigating why I don't see > any keepalives (using tcpdump) on my connections. > > The default values are as follows: > net.inet.tcp.keepidle = 7200000 > net.inet.tcp.keepintvl = 75000 > > It seems to me that the keepalive interval is being set > by keepidle, thus setting keepidle = 20000, generates > keepalives at 20s intervals. > > Looking at the comments in tcp_var.h, it should be > keepintvl that sets this interval. Otherwise, why > have such a large value for keepidle? > > Is this a bug? Or have I missed something, > 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=1. (Or by setting tcp_keepalive rc.conf(5) variable to "YES"). Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message