svn commit: r296343 - projects/vnet/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Thu Mar 3 09:01:01 UTC 2016


Author: bz
Date: Thu Mar  3 09:01:00 2016
New Revision: 296343
URL: https://svnweb.freebsd.org/changeset/base/296343

Log:
  Make the delay value more sensible.
  
  Reported by:	zec
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/vnet/sys/netinet/tcp_subr.c

Modified: projects/vnet/sys/netinet/tcp_subr.c
==============================================================================
--- projects/vnet/sys/netinet/tcp_subr.c	Thu Mar  3 08:47:27 2016	(r296342)
+++ projects/vnet/sys/netinet/tcp_subr.c	Thu Mar  3 09:01:00 2016	(r296343)
@@ -743,7 +743,7 @@ tcp_destroy(void *unused __unused)
 	 * Sleep to let all tcpcb timers really disappear and then cleanup.
 	 * Timewait will cleanup it's queue and will be ready to go.
 	 */
-	DELAY(hz);
+	DELAY(1000000 / hz);
 	tcp_hc_destroy();
 	syncache_destroy();
 	tcp_tw_destroy();


More information about the svn-src-projects mailing list