From owner-freebsd-stable@FreeBSD.ORG Thu May 29 19:19:33 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93F25106567C for ; Thu, 29 May 2008 19:19:33 +0000 (UTC) (envelope-from rblayzor.bulk@inoc.net) Received: from mx1-b.inoc.net (mx1-b.inoc.net [64.246.131.28]) by mx1.freebsd.org (Postfix) with ESMTP id 07FC48FC2B for ; Thu, 29 May 2008 19:19:32 +0000 (UTC) (envelope-from rblayzor.bulk@inoc.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=inoc.net; h=Received:From:To:Subject:Date; b=VQ1uilCPj7YpXjF6jMY1F5yKBVVMTxAXf/rWUIl/HpiZVVfkR1YHlxMGVFKwjDcj8ymgPTDNVnRFvON8NlRN+UfhBmzPqnmj4Vp1zx3sdgg1yckxOVQaoNxzLajkSxYzZUcsm9AXNS9/Kehb/AtdDiUpygHhX+oBsHibtAd4oyI=; Received: from void.ops.inoc.net (vanguard.noc.albyny.inoc.net [64.246.135.8]) by mx1-b.inoc.net (build v8.3.29) with ESMTP id 149670731-1941382 for multiple; Thu, 29 May 2008 19:19:29 +0000 (UTC) Message-Id: <14DA211A-A9C5-483A-8CB9-886E5B19A840@inoc.net> From: Robert Blayzor To: Matthew Dillon In-Reply-To: <200805291912.m4TJCG56025525@apollo.backplane.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Thu, 29 May 2008 15:19:29 -0400 References: <1A19ABA2-61CD-4D92-A08D-5D9650D69768@mac.com> <23C02C8B-281A-4ABD-8144-3E25E36EDAB4@inoc.net> <483DE2E0.90003@FreeBSD.org> <483E36CE.3060400@FreeBSD.org> <483E3C26.3060103@paradise.net.nz> <483E4657.9060906@FreeBSD.org> <483EA513.4070409@earthlink.net> <96AFE8D3-7EAC-4A4A-8EFF-35A5DCEC6426@inoc.net> <483EAED1.2050404@FreeBSD.org> <200805291912.m4TJCG56025525@apollo.backplane.com> X-Mailer: Apple Mail (2.924) Cc: freebsd-stable@freebsd.org Subject: Re: Sockets stuck in FIN_WAIT_1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2008 19:19:33 -0000 On May 29, 2008, at 3:12 PM, Matthew Dillon wrote: > I guess nobody mentioned the obvious thing to check: Make sure > TCP keepalive is turned on. > > sysctl net.inet.tcp.always_keepalive=1 Thanks Matt. I also thought that a keepalives were not running and sessions just stuck around forever, however I do have: net.inet.tcp.keepidle=900000 net.inet.tcp.keepintvl=30000 net.inet.tcp.msl=5000 net.inet.tcp.always_keepalive=1 (default) I believe keep idle was defaulted to 2hrs, I changed it to 15 minutes with a 30 second tick... I still found FIN_WAIT_1 sessions stuck for several hours, if not infinite. Nonet he less, I have a new server up running 7.0-p1, I'll be pumping a lot of traffic to that box soon and I'll see how that makes out. -- Robert Blayzor, BOFH INOC, LLC rblayzor@inoc.net http://www.inoc.net/~rblayzor/