Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46991
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 8 Apr 2009 16:13:23 +0000 (16:13 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 8 Apr 2009 16:13:23 +0000 (16:13 +0000)
Update the counters before we recycle the request

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@763302 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jk/server/JkCoyoteHandler.java

index f4e9756..c5c7d9c 100644 (file)
@@ -195,8 +195,8 @@ public class JkCoyoteHandler extends JkHandler implements ProtocolHandler {
             res.finish();
         }
 
-        req.recycle();
         req.updateCounters();
+        req.recycle();
         res.recycle();
         ep.recycle();
         if( ep.getStatus() == MsgContext.JK_STATUS_ERROR ) {