Advice needed on running idiotic test for client

p.r. faasse faasse at nlr.nl
Tue Jun 14 15:31:33 GMT 2005


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...


More information about the freebsd-net mailing list