tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r1295998 - /tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
Date Thu, 01 Mar 2012 23:46:10 GMT
Author: fhanik
Date: Thu Mar  1 23:46:09 2012
New Revision: 1295998

URL: http://svn.apache.org/viewvc?rev=1295998&view=rev
Log:
Fix access to poller registration

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java?rev=1295998&r1=1295997&r2=1295998&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java Thu Mar  1 23:46:09
2012
@@ -253,11 +253,7 @@ public class Http11NioProtocol extends A
                 //  - this is comet request
                 //  - the request line/headers have not been completely
                 //    read
-                SelectionKey key = socket.getSocket().getIOChannel().keyFor(
-                        socket.getSocket().getPoller().getSelector());
-                key.interestOps(SelectionKey.OP_READ);
-                ((KeyAttachment) socket).interestOps(
-                        SelectionKey.OP_READ);
+                socket.getSocket().getPoller().add(socket.getSocket());
             }
         }
 



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


Mime
View raw message