svn commit: r269526 - head/sys/netinet

Hiren Panchasara hiren at FreeBSD.org
Mon Aug 4 19:42:48 UTC 2014


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);


More information about the svn-src-head mailing list