You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2004/01/15 14:16:49 UTC

cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote RequestGroupInfo.java RequestInfo.java

remm        2004/01/15 05:16:49

  Modified:    coyote/src/java/org/apache/coyote RequestGroupInfo.java
                        RequestInfo.java
  Log:
  - Properly remove the RequestInfo from the request group on thread end.
  
  Revision  Changes    Path
  1.2       +4 -0      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestGroupInfo.java
  
  Index: RequestGroupInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestGroupInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RequestGroupInfo.java	20 Jan 2003 23:43:41 -0000	1.1
  +++ RequestGroupInfo.java	15 Jan 2004 13:16:49 -0000	1.2
  @@ -13,6 +13,10 @@
           processors.add( rp );
       }
   
  +    public void removeRequestProcessor( RequestInfo rp ) {
  +        processors.remove( rp );
  +    }
  +
       public long getMaxTime() {
           long maxTime=0;
           for( int i=0; i<processors.size(); i++ ) {
  
  
  
  1.7       +3 -0      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java
  
  Index: RequestInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RequestInfo.java	13 Nov 2003 20:03:33 -0000	1.6
  +++ RequestInfo.java	15 Jan 2004 13:16:49 -0000	1.7
  @@ -92,6 +92,9 @@
           if( global != null) {
               this.global=global;
               global.addRequestProcessor( this );
  +        } else {
  +            this.global.removeRequestProcessor( this );
  +            this.global = null;
           }
       }
   
  
  
  

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