hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r764586 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java
Date Mon, 13 Apr 2009 19:52:18 GMT
Author: olegk
Date: Mon Apr 13 19:52:18 2009
New Revision: 764586

URL: http://svn.apache.org/viewvc?rev=764586&view=rev
Log:
Explicitly set default TcpNoDelay and socket buffer parameter values

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java?rev=764586&r1=764585&r2=764586&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java
Mon Apr 13 19:52:18 2009
@@ -71,6 +71,7 @@
 import org.apache.http.impl.cookie.RFC2109SpecFactory;
 import org.apache.http.impl.cookie.RFC2965SpecFactory;
 import org.apache.http.params.BasicHttpParams;
+import org.apache.http.params.HttpConnectionParams;
 import org.apache.http.params.HttpParams;
 import org.apache.http.params.HttpProtocolParams;
 import org.apache.http.protocol.BasicHttpContext;
@@ -134,6 +135,10 @@
                 HTTP.DEFAULT_CONTENT_CHARSET);
         HttpProtocolParams.setUseExpectContinue(params, 
                 true);
+        HttpConnectionParams.setTcpNoDelay(params, 
+                Boolean.TRUE);
+        HttpConnectionParams.setSocketBufferSize(params, 
+                8192);
 
         // determine the release version from packaged version info
         final VersionInfo vi = VersionInfo.loadVersionInfo



Mime
View raw message