You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by vi...@apache.org on 2016/08/10 07:49:31 UTC
svn commit: r1755683 -
/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Author: violetagg
Date: Wed Aug 10 07:49:31 2016
New Revision: 1755683
URL: http://svn.apache.org/viewvc?rev=1755683&view=rev
Log:
Use methods updateLastRead/updateLastWrite instead of direct update of lastRead/lastWrite.
Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1755683&r1=1755682&r2=1755683&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Wed Aug 10 07:49:31 2016
@@ -1161,7 +1161,7 @@ public class NioEndpoint extends Abstrac
// Fill the read buffer as best we can.
int nRead = fillReadBuffer(block);
- lastRead = System.currentTimeMillis();
+ updateLastRead();
// Full as much of the remaining byte array as possible with the
// data that was just read
@@ -1246,7 +1246,7 @@ public class NioEndpoint extends Abstrac
if (getSocket().flush(true, selector, writeTimeout)) break;
} while (true);
}
- lastWrite = System.currentTimeMillis();
+ updateLastWrite();
} finally {
if (selector != null) {
pool.put(selector);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org