diff options
author | hiren <hiren@FreeBSD.org> | 2014-08-04 19:42:48 +0000 |
---|---|---|
committer | hiren <hiren@FreeBSD.org> | 2014-08-04 19:42:48 +0000 |
commit | 203dc5e795f4b986be5839f34c789a17eca1c30f (patch) | |
tree | d95934d3c1c8588c29d789dca9379d4e3fe9d23f | |
parent | 9e5713a93064f23093b09463c2b0160cc0b16e1a (diff) | |
download | FreeBSD-src-203dc5e795f4b986be5839f34c789a17eca1c30f.zip FreeBSD-src-203dc5e795f4b986be5839f34c789a17eca1c30f.tar.gz |
Add a comment for easier code understanding.
-rw-r--r-- | sys/netinet/tcp_timewait.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 7163585..33555d9 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); |