diff options
author | mohans <mohans@FreeBSD.org> | 2007-02-26 22:25:21 +0000 |
---|---|---|
committer | mohans <mohans@FreeBSD.org> | 2007-02-26 22:25:21 +0000 |
commit | 384aeb29f6100b5e13581c56efdea6d423675769 (patch) | |
tree | 21cfa3a2368a7f712458dfdd8d3485b03c0c6fa7 /sys/netinet/tcp_timer.h | |
parent | 2bd7382fdc16aa04088cebb691546535c56c484b (diff) | |
download | FreeBSD-src-384aeb29f6100b5e13581c56efdea6d423675769.zip FreeBSD-src-384aeb29f6100b5e13581c56efdea6d423675769.tar.gz |
Reap FIN_WAIT_2 connections marked SOCANTRCVMORE faster. This mitigate
potential issues where the peer does not close, potentially leaving
thousands of connections in FIN_WAIT_2. This is controlled by a new sysctl
fast_finwait2_recycle, which is disabled by default.
Reviewed by: gnn, silby.
Diffstat (limited to 'sys/netinet/tcp_timer.h')
-rw-r--r-- | sys/netinet/tcp_timer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timer.h b/sys/netinet/tcp_timer.h index 1e1c239..8d8742de 100644 --- a/sys/netinet/tcp_timer.h +++ b/sys/netinet/tcp_timer.h @@ -89,6 +89,8 @@ #define TCPTV_INFLIGHT_RTTTHRESH (10*hz/1000) /* below which inflight disengages, in msec */ +#define TCPTV_FINWAIT2_TIMEOUT (60*hz) /* FIN_WAIT_2 timeout if no receiver */ + /* * Minimum retransmit timer is 3 ticks, for algorithmic stability. * TCPT_RANGESET() will add another TCPTV_CPU_VAR to deal with @@ -152,6 +154,9 @@ extern int tcp_backoff[]; struct tcptw; +extern int tcp_finwait2_timeout; +extern int tcp_fast_finwait2_recycle; + void tcp_timer_init(void); void tcp_timer_2msl(void *xtp); struct tcptw * |