From 708e9ef188af71671b22a3f1cdf6f96f01e6ea72 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 13 Sep 2006 15:24:27 +0000 Subject: [PATCH] Document net.inet.tcp.maxtcptw and net.inet.tcp.nolocaltimewait. Wording by: Devon O'Dell --- share/man/man4/tcp.4 | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/share/man/man4/tcp.4 b/share/man/man4/tcp.4 index e9bbb0403329..ee7085e00912 100644 --- a/share/man/man4/tcp.4 +++ b/share/man/man4/tcp.4 @@ -32,7 +32,7 @@ .\" From: @(#)tcp.4 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd August 25, 2005 +.Dd September 13, 2006 .Dt TCP 4 .Os .Sh NAME @@ -460,6 +460,24 @@ only. .It Va sack.initburst Control the number of SACK retransmissions done upon initiation of SACK recovery. +.It Va maxtcptw +When a TCP connection enters the +.Dv TIME_WAIT +state, its associated socket structure is freed, since it is of +negligible size and use, and a new structure is allocated to contain a +minimal amount of information necessary for sustaining a connection in +this state, called the compressed TCP TIME_WAIT state. +Since this structure is smaller than a socket structure, it can save +a significant amount of system memory. +The +.Va net.inet.tcp.maxtcptw +MIB variable controls the maximum number of these structures allocated. +By default, it is initialized to +.Va kern.ipc.maxsockets +/ 5 . +.It Va nolocaltimewait +Suppress creating of compressed TCP TIME_WAIT states for connections in +which both endpoints are local. .El .Sh ERRORS A socket operation may fail with one of the following errors returned: