tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r539974 - /tomcat/tc6.0.x/trunk/java/org/apache/jk/common/MsgAjp.java
Date Sun, 20 May 2007 22:45:26 GMT
Author: billbarker
Date: Sun May 20 15:45:26 2007
New Revision: 539974

URL: http://svn.apache.org/viewvc?view=rev&rev=539974
Log:
Shave a couple of ms off of the time :)

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/jk/common/MsgAjp.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jk/common/MsgAjp.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jk/common/MsgAjp.java?view=diff&rev=539974&r1=539973&r2=539974
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/jk/common/MsgAjp.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jk/common/MsgAjp.java Sun May 20 15:45:26 2007
@@ -237,11 +237,12 @@
 
     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
     }



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


Mime
View raw message