remm        2003/09/07 11:03:21

  Modified:    coyote/src/java/org/apache/coyote Request.java
  Log:
  - Make the update of the stats an explicit call (I believe it is valid to call
    recycle multiple times, and it is hard to avoid with HTTP keepalive).
  
  Revision  Changes    Path
  1.23      +5 -3      
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Request.java      5 Jun 2003 19:46:49 -0000       1.22
  +++ Request.java      7 Sep 2003 18:03:21 -0000       1.23
  @@ -195,7 +195,7 @@
   
       private int bytesRead=0;
       // Time of the request - usefull to avoid repeated calls to System.currentTime
  -    private long startTime;
  +    private long startTime = 0L;
   
       private RequestInfo reqProcessorMX=new RequestInfo(this);
       // ------------------------------------------------------------- Properties
  @@ -494,8 +494,6 @@
   
   
       public void recycle() {
  -        // Call RequestProcessorMX
  -        reqProcessorMX.updateCounters();
           bytesRead=0;
   
        contentLength = -1;
  @@ -533,6 +531,10 @@
       }
   
       // -------------------- Info  --------------------
  +    public void updateCounters() {
  +        reqProcessorMX.updateCounters();
  +    }
  +
       public RequestInfo getRequestProcessor() {
           return reqProcessorMX;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to