Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/tcp.4
Show All 28 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" From: @(#)tcp.4 8.1 (Berkeley) 6/5/93 | .\" From: @(#)tcp.4 8.1 (Berkeley) 6/5/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd April 18, 2021 | .Dd April 24, 2021 | ||||
.Dt TCP 4 | .Dt TCP 4 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm tcp | .Nm tcp | ||||
.Nd Internet Transmission Control Protocol | .Nd Internet Transmission Control Protocol | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/types.h | .In sys/types.h | ||||
.In sys/socket.h | .In sys/socket.h | ||||
▲ Show 20 Lines • Show All 639 Lines • ▼ Show 20 Lines | |||||
improve future performance of connections between the same hosts. | improve future performance of connections between the same hosts. | ||||
At the completion of a TCP connection, a host will cache information | At the completion of a TCP connection, a host will cache information | ||||
for the connection for some defined period of time. | for the connection for some defined period of time. | ||||
.Bl -tag -compact | .Bl -tag -compact | ||||
.It 0 | .It 0 | ||||
Disable the host cache. | Disable the host cache. | ||||
.It 1 | .It 1 | ||||
Enable the host cache. (default) | Enable the host cache. (default) | ||||
.El | |||||
.It Va hostcache.purgenow | .It Va hostcache.purgenow | ||||
Immediately purge all entries once set to any value. | Immediately purge all entries once set to any value. | ||||
Setting this to 2 will also reseed the hash salt. | Setting this to 2 will also reseed the hash salt. | ||||
.It Va hostcache.purge | .It Va hostcache.purge | ||||
Expire all entires on next pruning of host cache entries. | Expire all entires on next pruning of host cache entries. | ||||
Any non-zero setting will be reset to zero, once the pruge | Any non-zero setting will be reset to zero, once the pruge | ||||
is running. | is running. | ||||
.Bl -tag -compact | .Bl -tag -compact | ||||
.It 0 | .It 0 | ||||
Do not purge all entries when pruning the host cache. (default) | Do not purge all entries when pruning the host cache. (default) | ||||
.It 1 | .It 1 | ||||
Purge all entries when doing the next pruning. | Purge all entries when doing the next pruning. | ||||
.It 2 | .It 2 | ||||
Purge all entries, and also reseed the hash salt. | Purge all entries, and also reseed the hash salt. | ||||
.El | |||||
.It Va hostcache.prune | .It Va hostcache.prune | ||||
Time in seconds between pruning expired host cache entries. | Time in seconds between pruning expired host cache entries. | ||||
Defaults to 300 (5 minutes). | Defaults to 300 (5 minutes). | ||||
.It Va hostcache.expire | .It Va hostcache.expire | ||||
Time in seconds, how long a entry should be kept in the | Time in seconds, how long a entry should be kept in the | ||||
host cache since last accessed. | host cache since last accessed. | ||||
Defaults to 3600 (1 hour). | Defaults to 3600 (1 hour). | ||||
.It Va hostcache.count | .It Va hostcache.count | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |