tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From violet...@apache.org
Subject svn commit: r1767903 - /tomcat/trunk/java/org/apache/catalina/connector/OutputBuffer.java
Date Thu, 03 Nov 2016 15:11:18 GMT
Author: violetagg
Date: Thu Nov  3 15:11:18 2016
New Revision: 1767903

URL: http://svn.apache.org/viewvc?rev=1767903&view=rev
Log:
Set the buffer size if it is above the one specified when OutputBuffer object was created.
This change resets the behavior to the one before r1758421.

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/OutputBuffer.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/OutputBuffer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/OutputBuffer.java?rev=1767903&r1=1767902&r2=1767903&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/OutputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/OutputBuffer.java Thu Nov  3 15:11:18
2016
@@ -639,7 +639,7 @@ public class OutputBuffer extends Writer
 
 
     public void setBufferSize(int size) {
-        if (size != bb.capacity()) {
+        if (size > bb.capacity()) {
             bb = ByteBuffer.allocate(size);
             clear(bb);
         }



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


Mime
View raw message