From owner-freebsd-questions Mon Oct 18 10:54: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 05D7814CC7 for ; Mon, 18 Oct 1999 10:53:59 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id NAA13573; Mon, 18 Oct 1999 13:57:05 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199910181757.NAA13573@cc942873-a.ewndsr1.nj.home.com> Subject: Re: ftp autologout In-Reply-To: <380B1E96.1B27@echidna.com> from Graeme Tait at "Oct 18, 1999 06:20:22 am" To: graeme@echidna.com (Graeme Tait) Date: Mon, 18 Oct 1999 13:57:05 -0400 (EDT) Cc: jcwells@u.washington.edu (Jason C. Wells), lvagner@ibm.net (George Vagner), questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message