From: fhanik Date: Fri, 11 Aug 2006 16:22:52 +0000 (+0000) Subject: Make sure we don't fill up the cache after pause has been initated X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f38298d30a20245ca0c8319d5c466764a555ccdf;p=tomcat7.0 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 --- 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; } };