From 0ce6ba3b79746f0faff6d79f91386fa39a249e8c Mon Sep 17 00:00:00 2001 From: fhanik Date: Wed, 9 Aug 2006 21:22:24 +0000 Subject: [PATCH] Fixed close down, and degraded a message to debug git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@430148 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index 315c05960..77fda3b70 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -153,7 +153,6 @@ public class NioEndpoint { protected ConcurrentLinkedQueue nioChannels = new ConcurrentLinkedQueue() { public boolean offer(NioChannel o) { - if ( getSecure() ) return false; //avoid over growing our cache or add after we have stopped if ( running && (size() < curThreads) ) return super.offer(o); else return false; @@ -961,9 +960,10 @@ public class NioEndpoint { // Wait for polltime before doing anything, so that the poller threads // exit, otherwise parallel descturction of sockets which are still // in the poller can cause problems + close = true; try { synchronized (this) { - this.wait(pollTime / 1000); + this.wait(selectorTimeout * 2); } } catch (InterruptedException e) { // Ignore @@ -1350,7 +1350,7 @@ public class NioEndpoint { handshake = socket.handshake(key.isReadable(), key.isWritable()); }catch ( IOException x ) { handshake = -1; - log.error("Error during SSL handshake",x); + if ( log.isDebugEnabled() ) log.debug("Error during SSL handshake",x); }catch ( CancelledKeyException ckx ) { handshake = -1; } -- 2.11.0