From 7c72af877023dbbd7aa8d4ed38d52386d6711680 Mon Sep 17 00:00:00 2001 From: Mohan Srinivasan Date: Mon, 26 Feb 2007 22:25:21 +0000 Subject: 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. --- usr.bin/netstat/inet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin') diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 5f5f54babdd3..d69a0cb0fe76 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"); -- cgit v1.3