From owner-freebsd-net@FreeBSD.ORG Tue Jun 14 15:31:33 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C6DB16A41C for ; Tue, 14 Jun 2005 15:31:33 +0000 (GMT) (envelope-from faasse@nlr.nl) Received: from mail-gateway.nlr.nl (mail-gateway.nlr.nl [137.17.162.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BAA443D48 for ; Tue, 14 Jun 2005 15:31:32 +0000 (GMT) (envelope-from faasse@nlr.nl) Received: from border.nlr.nl (border-qfe3 [137.17.162.1]) by mail-gateway.nlr.nl with SMTP id j5EFVUPG5028115; (enveloppe sender address: faasse@nlr.nl); Tue, 14 Jun 2005 17:31:30 +0200 (CDT) Disclaimer: "The National Aerospace Laboratory NLR DOES NOT ACCEPT ANY FINANCIAL COMMITMENT derived from this message." Received: from pcea102a.nlr.nl (pcea102a.nlr.nl [137.17.4.108]) by spider.nlr.nl with ESMTP id j5EFVSat22100951; Tue, 14 Jun 2005 17:31:29 +0200 (CDT) From: "p.r. faasse" Organization: nlr To: freebsd-net@freebsd.org Date: Tue, 14 Jun 2005 17:31:27 +0200 User-Agent: KMail/1.6.1 References: <06e401c570e2$3f342930$1b321d80@MITRE.ORG> In-Reply-To: <06e401c570e2$3f342930$1b321d80@MITRE.ORG> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200506141731.28006.faasse@nlr.nl> X-ESAFE-STATUS: Mail clean X-ESAFE-DETAILS: Clean Subject: Re: Advice needed on running idiotic test for client X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 15:31:33 -0000 On Tuesday 14 June 2005 15:09, PSI, Mike Smith wrote: > Hey all, > > Need some probably fundamental help with an admitted idiotic "test" from a client. Is there any way to close a TCP connection such that all resources are immediately freed? > > Is there any way to close a TCP connection and have all resources immediately freed? I KNOW this is really violating all the data integrity features of TCP, but this is an idiotic test remember. And in this case I am not concerned about data integrety. I have noticed that LINUX has a TCP_LINGER2 option that can at least minimize the closing delay (freeing resources) but I haven't found anything comparable in FreeBSD. > What you mention is (as far as i know) called time-wait assasination. I would suggest a google-search of that. Note: SO_REUSEADDRESS/SO_REUSEPORT is not an option i presume? My 'bible': (Effective TCP/IP Programming: 44 Tips to Improve Your Network Programs) suggests that as an alternative...