tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1512033 - /tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Date Thu, 08 Aug 2013 21:09:00 GMT
Author: markt
Date: Thu Aug  8 21:09:00 2013
New Revision: 1512033

URL: http://svn.apache.org/r1512033
Log:
Switch the logic around in preparation for a fix for BZ 55381

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1512033&r1=1512032&r2=1512033&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Thu Aug  8 21:09:00 2013
@@ -601,10 +601,10 @@ public class NioEndpoint extends Abstrac
     }
 
     public boolean dispatchForEvent(NioChannel socket, SocketStatus status, boolean dispatch)
{
-        if (!dispatch) {
-            processSocket(socket,status,dispatch);
-        } else {
+        if (dispatch && status == SocketStatus.OPEN_READ) {
             socket.getPoller().add(socket, OP_CALLBACK);
+        } else {
+            processSocket(socket,status,dispatch);
         }
         return true;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message