You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2007/03/08 22:45:12 UTC
svn commit: r516190 -
/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Author: fhanik
Date: Thu Mar 8 13:45:11 2007
New Revision: 516190
URL: http://svn.apache.org/viewvc?view=rev&rev=516190
Log:
just added some notes
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?view=diff&rev=516190&r1=516189&r2=516190
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Thu Mar 8 13:45:11 2007
@@ -1291,11 +1291,11 @@
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() ) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org