From: billbarker Date: Sun, 20 May 2007 22:45:26 +0000 (+0000) Subject: Shave a couple of ms off of the time :) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e7cfe1b516886d69c4b89779159d3eeb845738aa;p=tomcat7.0 Shave a couple of ms off of the time :) git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@539974 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jk/common/MsgAjp.java b/java/org/apache/jk/common/MsgAjp.java index dd602dcc1..8b6ce0546 100644 --- a/java/org/apache/jk/common/MsgAjp.java +++ b/java/org/apache/jk/common/MsgAjp.java @@ -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 }