From owner-freebsd-stable@FreeBSD.ORG Fri May 30 10:12:46 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 5C3331065676 for ; Fri, 30 May 2008 10:12:46 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail08.syd.optusnet.com.au (mail08.syd.optusnet.com.au [211.29.132.189]) by mx1.freebsd.org (Postfix) with ESMTP id D1D338FC2A for ; Fri, 30 May 2008 10:12:45 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m4UACfX8003389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 May 2008 20:12:43 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m4UACfwI009950; Fri, 30 May 2008 20:12:41 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m4UACffp009949; Fri, 30 May 2008 20:12:41 +1000 (EST) (envelope-from peter) Date: Fri, 30 May 2008 20:12:41 +1000 From: Peter Jeremy To: Robert Blayzor Message-ID: <20080530101241.GS1028@server.vk2pj.dyndns.org> References: <483EAED1.2050404@FreeBSD.org> <200805291912.m4TJCG56025525@apollo.backplane.com> <14DA211A-A9C5-483A-8CB9-886E5B19A840@inoc.net> <200805291930.m4TJUeGX025815@apollo.backplane.com> <0C827F66-09CE-476D-86E9-146AB255926B@inoc.net> <200805292132.m4TLWhCv026720@apollo.backplane.com> <20080530081143.GI1028@server.vk2pj.dyndns.org> <20080530084724.GA37672@walton.maths.tcd.ie> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h56sxpGKRmy85csR" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) 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: Fri, 30 May 2008 10:12:46 -0000 --h56sxpGKRmy85csR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-May-30 05:35:56 -0400, Robert Blayzor wrot= e: >A timeout value would be fine. The problem is selecting a sensible timeout - 30-60s might be reasonable for a webserver that serves static content but is a bit short for a shell session... >On a side note, I could easily fix this problem by frontending the server= =20 >with a Cisco PIX or ASA. I believe they have "half closed" timers just fo= r=20 >this purpose... Perhaps a kernel tunable knob would be a nice=20 >option/fix/hack also. I don't think your problem is related to half-closed connections. You would get exactly the same behaviour if the server didn't close its end of the connection. OTOH, a long-lived half-closed connection is perfectly valid - many years ago, I wrote a tool that logged data in one direction only and so closed the other direction. I agree that a kernel tunable would be nice but I'm not in a position to write a suitable patch at present. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --h56sxpGKRmy85csR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkg/0xkACgkQ/opHv/APuIc57wCfYBPPNnvo9y0C5/lj2tWGhLHT YZkAoMD4/fMKTSpK5GpkHS5Ti55yxWop =ae4V -----END PGP SIGNATURE----- --h56sxpGKRmy85csR--