Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jun 2005 17:31:27 +0200
From:      "p.r. faasse" <faasse@nlr.nl>
To:        freebsd-net@freebsd.org
Subject:   Re: Advice needed on running idiotic test for client
Message-ID:  <200506141731.28006.faasse@nlr.nl>
In-Reply-To: <06e401c570e2$3f342930$1b321d80@MITRE.ORG>
References:  <06e401c570e2$3f342930$1b321d80@MITRE.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
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...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506141731.28006.faasse>