tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1703400 - /tomcat/trunk/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java
Date Wed, 16 Sep 2015 13:25:42 GMT
Author: markt
Date: Wed Sep 16 13:25:41 2015
New Revision: 1703400

URL: http://svn.apache.org/r1703400
Log:
Remove duplicate code.
A call to reader.access() calls setLastAccess()

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java

Modified: tomcat/trunk/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java?rev=1703400&r1=1703399&r2=1703400&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java Wed
Sep 16 13:25:41 2015
@@ -149,7 +149,6 @@ public class NioReplicationTask extends
      * so the selector will resume watching this channel.
      */
     protected void drainChannel (final SelectionKey key, ObjectReader reader) throws Exception
{
-        reader.setLastAccess(System.currentTimeMillis());
         reader.access();
         ReadableByteChannel channel = (ReadableByteChannel) key.channel();
         int count=-1;



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


Mime
View raw message