summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authormohans <mohans@FreeBSD.org>2007-02-26 22:25:21 +0000
committermohans <mohans@FreeBSD.org>2007-02-26 22:25:21 +0000
commit384aeb29f6100b5e13581c56efdea6d423675769 (patch)
tree21cfa3a2368a7f712458dfdd8d3485b03c0c6fa7 /usr.bin/netstat
parent2bd7382fdc16aa04088cebb691546535c56c484b (diff)
downloadFreeBSD-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 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 5f5f54b..d69a0cb 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -436,6 +436,7 @@ tcp_stats(u_long off __unused, const char *name, int af1 __unused)
p(tcps_timeoutdrop, "\t\t%lu connection%s dropped by rexmit timeout\n");
p(tcps_persisttimeo, "\t%lu persist timeout%s\n");
p(tcps_persistdrop, "\t\t%lu connection%s dropped by persist timeout\n");
+ p(tcps_finwait2_drops, "\t%lu Connection%s (fin_wait_2) dropped because of timeout\n");
p(tcps_keeptimeo, "\t%lu keepalive timeout%s\n");
p(tcps_keepprobe, "\t\t%lu keepalive probe%s sent\n");
p(tcps_keepdrops, "\t\t%lu connection%s dropped by keepalive\n");
OpenPOWER on IntegriCloud