Author: fhanik
Date: Fri Aug 11 09:22:52 2006
New Revision: 430816
URL: http://svn.apache.org/viewvc?rev=430816&view=rev
Log:
Make sure we don't fill up the cache after pause has been initated
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=430816&r1=430815&r2=430816&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Fri
Aug 11 09:22:52 2006
@@ -154,7 +154,7 @@
protected ConcurrentLinkedQueue<NioChannel> nioChannels = new
ConcurrentLinkedQueue<NioChannel>() {
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;
}
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]