hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r233038 - in /jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io: NIOHttpDataReceiver.java NIOHttpDataTransmitter.java
Date Tue, 16 Aug 2005 19:28:33 GMT
Author: olegk
Date: Tue Aug 16 12:28:28 2005
New Revision: 233038

URL: http://svn.apache.org/viewcvs?rev=233038&view=rev
Log:
Do not impose an upper limit on send and receive buffers

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataReceiver.java
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataTransmitter.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataReceiver.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataReceiver.java?rev=233038&r1=233037&r2=233038&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataReceiver.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataReceiver.java
Tue Aug 16 12:28:28 2005
@@ -60,7 +60,7 @@
     private Charset charset = null;
     
     protected void initBuffer(int buffersize) {
-        if ((buffersize > 2048) || (buffersize <= 0)) {
+        if ((buffersize < 2048)) {
             buffersize = 2048;
         }
         this.buffer = ByteBuffer.allocateDirect(buffersize);

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataTransmitter.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataTransmitter.java?rev=233038&r1=233037&r2=233038&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataTransmitter.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/io/NIOHttpDataTransmitter.java
Tue Aug 16 12:28:28 2005
@@ -61,7 +61,7 @@
     private Charset charset = null;
 
     protected void initBuffer(int buffersize) {
-        if ((buffersize > 2048) || (buffersize <= 0)) {
+        if ((buffersize < 2048)) {
             buffersize = 2048;
         }
         this.buffer = ByteBuffer.allocateDirect(buffersize);



Mime
View raw message