tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r393603 - /tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/coyote/tomcat5/InputBuffer.java
Date Wed, 12 Apr 2006 20:42:49 GMT
Author: fhanik
Date: Wed Apr 12 13:42:48 2006
New Revision: 393603

URL: http://svn.apache.org/viewcvs?rev=393603&view=rev
Log:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38346
Fixed in 5.5 backporting to 5.0
Fixed provided by Rainer Jung

Modified:
    tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/coyote/tomcat5/InputBuffer.java

Modified: tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/coyote/tomcat5/InputBuffer.java
URL: http://svn.apache.org/viewcvs/tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/coyote/tomcat5/InputBuffer.java?rev=393603&r1=393602&r2=393603&view=diff
==============================================================================
--- tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/coyote/tomcat5/InputBuffer.java
(original)
+++ tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/coyote/tomcat5/InputBuffer.java
Wed Apr 12 13:42:48 2006
@@ -221,6 +221,7 @@
         if (cb.getChars().length > size) {
             cb = new CharChunk(size);
             cb.setLimit(size);
+            cb.setOptimizedWrite(false);
             cb.setCharInputChannel(this);
             cb.setCharOutputChannel(this);
         } else {
@@ -350,6 +351,10 @@
             cb.setOffset(0);
             cb.setEnd(0);
         }
+
+        int offset = bb.getLength()+cb.getStart();
+        if ( cb.getLimit() < offset )
+            cb.setLimit(offset);
 
         conv.convert(bb, cb);
         bb.setOffset(bb.getEnd());



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


Mime
View raw message