Shave a couple of ms off of the time :)
authorbillbarker <billbarker@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 20 May 2007 22:45:26 +0000 (22:45 +0000)
committerbillbarker <billbarker@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 20 May 2007 22:45:26 +0000 (22:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@539974 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jk/common/MsgAjp.java

index dd602dc..8b6ce05 100644 (file)
@@ -237,11 +237,12 @@ public class MsgAjp extends Msg {
 
     public void getBytes(MessageBytes mb) {
         int length = getInt();
-        mb.recycle();
         if( (length == 0xFFFF) || (length == -1) ) {
+            mb.recycle();
             return;
         }
         mb.setBytes( buf, pos, length );
+        mb.getCharChunk().recycle();
         pos += length;
         pos++; // Skip the terminating \0
     }