You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2015/02/13 12:40:46 UTC

svn commit: r1659521 - /tomcat/trunk/java/org/apache/coyote/Request.java

Author: kkolinko
Date: Fri Feb 13 11:40:46 2015
New Revision: 1659521

URL: http://svn.apache.org/r1659521
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57581
Change internal byte counter in Coyote Request to be long instead of int.

The public API via RequestInfo.getRequestBytesReceived() already declares it as long.

Modified:
    tomcat/trunk/java/org/apache/coyote/Request.java

Modified: tomcat/trunk/java/org/apache/coyote/Request.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/Request.java?rev=1659521&r1=1659520&r2=1659521&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/Request.java (original)
+++ tomcat/trunk/java/org/apache/coyote/Request.java Fri Feb 13 11:40:46 2015
@@ -134,7 +134,7 @@ public final class Request {
     private Response response;
     private ActionHook hook;
 
-    private int bytesRead=0;
+    private long bytesRead=0;
     // Time of the request - useful to avoid repeated calls to System.currentTime
     private long startTime = -1;
     private int available = 0;
@@ -560,7 +560,7 @@ public final class Request {
         return reqProcessorMX;
     }
 
-    public int getBytesRead() {
+    public long getBytesRead() {
         return bytesRead;
     }
 



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