From 76504ce978eb237d4fb5512ce9fc30209135665c Mon Sep 17 00:00:00 2001 From: Hiren Panchasara Date: Mon, 4 Aug 2014 19:42:48 +0000 Subject: [PATCH] Add a comment for easier code understanding. --- sys/netinet/tcp_timewait.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 716358569d4..33555d9fe98 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -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);