Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2014 19:42:48 +0000 (UTC)
From:      Hiren Panchasara <hiren@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269526 - head/sys/netinet
Message-ID:  <53dfe238.5ff1.218d2d88@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hiren
Date: Mon Aug  4 19:42:48 2014
New Revision: 269526
URL: http://svnweb.freebsd.org/changeset/base/269526

Log:
  Add a comment for easier code understanding.

Modified:
  head/sys/netinet/tcp_timewait.c

Modified: head/sys/netinet/tcp_timewait.c
==============================================================================
--- head/sys/netinet/tcp_timewait.c	Mon Aug  4 19:02:30 2014	(r269525)
+++ head/sys/netinet/tcp_timewait.c	Mon Aug  4 19:42:48 2014	(r269526)
@@ -275,6 +275,11 @@ tcp_twstart(struct tcpcb *tp)
 
 	tw = uma_zalloc(V_tcptw_zone, M_NOWAIT);
 	if (tw == NULL) {
+		/*
+		 * Reached limit on total number of TIMEWAIT connections
+		 * allowed. Remove a connection from TIMEWAIT queue in LRU
+		 * fashion to make room for this connection.
+		 */
 		tw = tcp_tw_2msl_reuse();
 		if (tw == NULL) {
 			tp = tcp_close(tp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53dfe238.5ff1.218d2d88>