don't cancel, only do that within the selector thread, as this is a synchronized...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 24 Oct 2006 22:32:49 +0000 (22:32 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 24 Oct 2006 22:32:49 +0000 (22:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467514 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioEndpoint.java

index 168c5ca..9d21f88 100644 (file)
@@ -156,7 +156,6 @@ public class NioEndpoint {
             SelectionKey key = sel!=null?socket.getIOChannel().keyFor(sel):null;
             KeyAttachment att = key!=null?(KeyAttachment)key.attachment():null;
             if ( att!=null ) att.reset();
-            if ( key!=null ) key.cancel();
             //avoid over growing our cache or add after we have stopped
             if ( running && (!paused) && (size() < socketProperties.getDirectBufferPool()) ) return super.offer(socket);
             else return false;