hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r359884 - /jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
Date Thu, 29 Dec 2005 19:34:59 GMT
Author: olegk
Date: Thu Dec 29 11:34:45 2005
New Revision: 359884

URL: http://svn.apache.org/viewcvs?rev=359884&view=rev
Log:
Removed the MAX_CHUNK condition check

Modified:
    jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java

Modified: jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java?rev=359884&r1=359883&r2=359884&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
Thu Dec 29 11:34:45 2005
@@ -51,8 +51,6 @@
     private static final int LF = 10;
     private static final byte[] CRLF = new byte[] {CR, LF};
 
-    private static final int MAX_CHUNK = 2048;
-    
     private OutputStream outstream;
     private ByteArrayBuffer buffer;
         
@@ -89,7 +87,7 @@
         // Do not want to buffer largish chunks
         // if the byte array is larger then MAX_CHUNK
         // write it directly to the output stream
-        if (len >= MAX_CHUNK || len > this.buffer.capacity()) {
+        if (len > this.buffer.capacity()) {
             // flush the buffer
             flushBuffer();
             // write directly to the out stream



Mime
View raw message