From f38298d30a20245ca0c8319d5c466764a555ccdf Mon Sep 17 00:00:00 2001 From: fhanik Date: Fri, 11 Aug 2006 16:22:52 +0000 Subject: [PATCH] Make sure we don't fill up the cache after pause has been initated git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@430816 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index f62b6a6d9..4d6487b9c 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -154,7 +154,7 @@ public class NioEndpoint { protected ConcurrentLinkedQueue nioChannels = new ConcurrentLinkedQueue() { public boolean offer(NioChannel o) { //avoid over growing our cache or add after we have stopped - if ( running && (size() < curThreads) ) return super.offer(o); + if ( running && (!paused) && (size() < curThreads) ) return super.offer(o); else return false; } }; -- 2.11.0