From: fhanik Date: Thu, 8 Mar 2007 21:45:11 +0000 (+0000) Subject: just added some notes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2556594ee51d282e19dab93801706c1cb90c87d5;p=tomcat7.0 just added some notes git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@516190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index f88f36743..4747be913 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -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() ) {