hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r290224 - /jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
Date Mon, 19 Sep 2005 18:09:47 GMT
Author: olegk
Date: Mon Sep 19 11:09:40 2005
New Revision: 290224

URL: http://svn.apache.org/viewcvs?rev=290224&view=rev
Log:
Disabled stale connection check and expect-continue handshake that may distort test results

Modified:
    jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java

Modified: jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java?rev=290224&r1=290223&r2=290224&view=diff
==============================================================================
--- jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
(original)
+++ jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
Mon Sep 19 11:09:40 2005
@@ -51,6 +51,7 @@
 import org.apache.http.impl.HttpPostRequest;
 import org.apache.http.impl.io.PlainSocketFactory;
 import org.apache.http.io.SocketFactory;
+import org.apache.http.params.HttpConnectionParams;
 import org.apache.http.params.HttpParams;
 import org.apache.http.params.HttpProtocolParams;
 import org.apache.http.protocol.RequestConnControl;
@@ -84,7 +85,8 @@
         params.setParameter(HttpProtocolParams.PROTOCOL_VERSION, HttpVersion.HTTP_1_1)
         	.setParameter(HttpProtocolParams.HTTP_CONTENT_CHARSET, "UTF-8")
         	.setParameter(HttpProtocolParams.USER_AGENT, "Jakarta HTTP")
-        	.setBooleanParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, true);
+        	.setBooleanParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false)
+        	.setBooleanParameter(HttpConnectionParams.STALE_CONNECTION_CHECK, false);
         	
         HttpRequestExecutor httpexecutor = new HttpRequestExecutor();
         httpexecutor.setParams(params);



Mime
View raw message