time

Mike Silbersack silby at silby.com
Mon Oct 11 18:38:32 PDT 2004


On Mon, 11 Oct 2004, Eli Dart wrote:

>
> In reply to Omer Faruk Sen <ofsen at enderunix.org> :
>
>> According to the very old article stated
>> http://www.totse.com/en/technology/computer_technology/162444.html there is
>> no way to tune time_wait timeout in FreeBSD. But since it is very old
>> article my question is this:
>>
>> Is there a way to change the time_wait timeout value in FreeBSD?
>
> sysctl -w net.inet.tcp.msl=<milliseconds>
>
> The default is 30000 (30 seconds).
>
> 		--eli

That may have other sideeffects, however.

In FreeBSD 5.x, the TIME_WAIT timeout is not configurable, but time_wait 
sockets are stored in a seperate hash table.  Also, they are now 
terminated prematurely when there is a shortage of ephemeral ports.  As a 
result, time_wait sockets are no longer the problem they were in certain 
situations under 4.x.

Mike "Silby" Silbersack


More information about the freebsd-net mailing list