Author: markt Date: Thu Feb 5 09:20:34 2015 New Revision: 1657501 URL: http://svn.apache.org/r1657501 Log: Change read & write interest defaults for NIO. These should only be true once the socket has been registered for read/write.
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1657501&r1=1657500&r2=1657501&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Thu Feb 5 09:20:34 2015 @@ -732,12 +732,12 @@ public class Nio2Endpoint extends Abstra private final CompletionHandler<Integer, SocketWrapperBase<Nio2Channel>> readCompletionHandler; private final Semaphore readPending = new Semaphore(1); - private boolean readInterest = true; // Guarded by readCompletionHandler + private boolean readInterest = false; // Guarded by readCompletionHandler private final CompletionHandler<Integer, ByteBuffer> writeCompletionHandler; private final CompletionHandler<Long, ByteBuffer[]> gatheringWriteCompletionHandler; private final Semaphore writePending = new Semaphore(1); - private boolean writeInterest = true; // Guarded by writeCompletionHandler + private boolean writeInterest = false; // Guarded by writeCompletionHandler private boolean writeNotify = false; private CompletionHandler<Integer, SocketWrapperBase<Nio2Channel>> awaitBytesHandler --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org