tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3 Tomcat3Adapter.java
Date Fri, 08 Nov 2002 06:20:59 GMT
billbarker    2002/11/07 22:20:59

  Modified:    coyote/src/java/org/apache/coyote/tomcat3
                        Tomcat3Adapter.java
  Log:
  Remember to recycle the request & response, even when there is an error.
  
  Revision  Changes    Path
  1.4       +6 -5      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Adapter.java
  
  Index: Tomcat3Adapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Adapter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Tomcat3Adapter.java	10 May 2002 23:30:18 -0000	1.3
  +++ Tomcat3Adapter.java	8 Nov 2002 06:20:59 -0000	1.4
  @@ -112,10 +112,11 @@
               resA=(Tomcat3Response)reqA.getResponse();
           }
           
  -	    
  -	cm.service( reqA, resA );
  -
  -        reqA.recycle();
  -        resA.recycle();
  +	try {
  +	    cm.service( reqA, resA );
  +	} finally {
  +	    reqA.recycle();
  +	    resA.recycle();
  +	}
       }
   }
  
  
  

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


Mime
View raw message