From owner-freebsd-questions Mon Oct 18 16: 4:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hera.webcom.com (hera.webcom.com [209.1.28.42]) by hub.freebsd.org (Postfix) with ESMTP id 3847614F36 for ; Mon, 18 Oct 1999 16:04:48 -0700 (PDT) (envelope-from graeme@echidna.com) Received: from eresh.webcom.com (eresh.webcom.com [209.1.28.49]) by hera.webcom.com (8.9.1/8.9.1) with SMTP id QAA20130; Mon, 18 Oct 1999 16:04:48 -0700 Received: from [204.143.69.11] by inanna.webcom.com (WebCom SMTP 1.2.1) with SMTP id 41279512; Mon Oct 18 15:59 PDT 1999 Message-Id: <380BD187.23C4@echidna.com> Date: Mon, 18 Oct 1999 19:03:51 -0700 From: Graeme Tait Organization: Echidna X-Mailer: Mozilla 2.02 (Win16; I) Mime-Version: 1.0 To: cjclark@home.com Cc: "Jason C. Wells" , George Vagner , questions@freebsd.org Subject: Re: ftp autologout References: <199910181757.NAA13573@cc942873-a.ewndsr1.nj.home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Crist J. Clark wrote: > > Graeme Tait wrote, > [snip] > > What appeared to be happening in my case was that client connections were failing in mid > > transfer. This can apparently leave ftpd in an indefinite wait. I was advised to try the > > following to clear out these connections: > > > > # sysctl -w net.inet.tcp.always_keepalive=1 > > > > This seems to have done the job. I believe it kills idle connections after 4 hours. > > Small note, there is an rc.conf switch to set this, > > tcp_keepalive="YES" # Kill dead TCP connections (or NO). > > It is set on in /etc/defaults/rc.conf. That is, it is set on by > default. My 2.2.7S doesn't have this in rc.conf - perhaps it was added with 3.x. -- Graeme Tait - Echidna To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message