hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1463895 - in /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn: DefaultClientAsyncConnectionFactory.java ManagedNHttpClientConnectionFactory.java ManagedNHttpClientConnectionImpl.java
Date Wed, 03 Apr 2013 09:42:23 GMT
Author: olegk
Date: Wed Apr  3 09:42:22 2013
New Revision: 1463895

URL: http://svn.apache.org/r1463895
Log:
Use buffer size and fragment size hint parameters from ConnectionConfig

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnectionFactory.java
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionFactory.java
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionImpl.java

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnectionFactory.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnectionFactory.java?rev=1463895&r1=1463894&r2=1463895&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnectionFactory.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/DefaultClientAsyncConnectionFactory.java
Wed Apr  3 09:42:22 2013
@@ -128,7 +128,8 @@ public class DefaultClientAsyncConnectio
                 this.headerlog,
                 this.wirelog,
                 iosession,
-                8 * 1024,
+                config.getBufferSize(),
+                config.getFragmentSizeHint(),
                 this.allocator,
                 chardecoder, charencoder, config.getMessageConstraints(),
                 null, null, null,

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionFactory.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionFactory.java?rev=1463895&r1=1463894&r2=1463895&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionFactory.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionFactory.java
Wed Apr  3 09:42:22 2013
@@ -102,7 +102,8 @@ public class ManagedNHttpClientConnectio
                 this.headerlog,
                 this.wirelog,
                 iosession,
-                8 * 1024,
+                config.getBufferSize(),
+                config.getFragmentSizeHint(),
                 this.allocator,
                 chardecoder,
                 charencoder,

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionImpl.java?rev=1463895&r1=1463894&r2=1463895&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionImpl.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/ManagedNHttpClientConnectionImpl.java
Wed Apr  3 09:42:22 2013
@@ -64,6 +64,7 @@ class ManagedNHttpClientConnectionImpl
             final Log wirelog,
             final IOSession iosession,
             final int buffersize,
+            final int fragmentSizeHint,
             final ByteBufferAllocator allocator,
             final CharsetDecoder chardecoder,
             final CharsetEncoder charencoder,
@@ -72,7 +73,7 @@ class ManagedNHttpClientConnectionImpl
             final ContentLengthStrategy outgoingContentStrategy,
             final NHttpMessageWriterFactory<HttpRequest> requestWriterFactory,
             final NHttpMessageParserFactory<HttpResponse> responseParserFactory) {
-        super(iosession, buffersize, buffersize, allocator, chardecoder, charencoder, constraints,
+        super(iosession, buffersize, fragmentSizeHint, allocator, chardecoder, charencoder,
constraints,
                 incomingContentStrategy, outgoingContentStrategy,
                 requestWriterFactory, responseParserFactory);
         this.id = id;



Mime
View raw message