just added some notes
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 8 Mar 2007 21:45:11 +0000 (21:45 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 8 Mar 2007 21:45:11 +0000 (21:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@516190 13f79535-47bb-0310-9956-ffa450edef68

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

index f88f367..4747be9 100644 (file)
@@ -1291,11 +1291,11 @@ public class NioEndpoint {
                     KeyAttachment attachment = (KeyAttachment)sk.attachment();
                     try {
                         if ( sk.isValid() && attachment != null ) {
-                            attachment.access();
-                            sk.attach(attachment);
-                            int interestOps = sk.interestOps();
+                            attachment.access();//make sure we don't time out valid sockets
+                            sk.attach(attachment);//cant remember why this is here
+                            int interestOps = sk.interestOps();//get the interestops, in case we need to reset them
                             sk.interestOps(0); //this is a must, so that we don't have multiple threads messing with the socket
-                            attachment.interestOps(0);
+                            attachment.interestOps(0);//fast access interestp ops
                             NioChannel channel = attachment.getChannel();
                             if (sk.isReadable() || sk.isWritable() ) {
                                 if ( attachment.getComet() ) {