hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1038812 - in /httpcomponents/httpclient/trunk/httpclient-benchmark: pom.xml src/main/java/org/apache/http/client/benchmark/TestJettyHttpClient.java src/main/java/org/apache/http/client/benchmark/TestNingHttpClient.java
Date Wed, 24 Nov 2010 20:55:07 GMT
Author: olegk
Date: Wed Nov 24 20:55:06 2010
New Revision: 1038812

URL: http://svn.apache.org/viewvc?rev=1038812&view=rev
Log:
Updated HttpCore and Ning dependencies; made Jetty client read response content

Modified:
    httpcomponents/httpclient/trunk/httpclient-benchmark/pom.xml
    httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestJettyHttpClient.java
    httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestNingHttpClient.java

Modified: httpcomponents/httpclient/trunk/httpclient-benchmark/pom.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-benchmark/pom.xml?rev=1038812&r1=1038811&r2=1038812&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-benchmark/pom.xml (original)
+++ httpcomponents/httpclient/trunk/httpclient-benchmark/pom.xml Wed Nov 24 20:55:06 2010
@@ -62,7 +62,7 @@
     <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpcore</artifactId>
-      <version>4.1-beta1</version>
+      <version>4.1</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -98,7 +98,7 @@
     <dependency>
       <groupId>com.ning</groupId>
       <artifactId>async-http-client</artifactId>
-      <version>1.3.3</version>
+      <version>1.4.0</version>
       <scope>compile</scope>
     </dependency>
   </dependencies>

Modified: httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestJettyHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestJettyHttpClient.java?rev=1038812&r1=1038811&r2=1038812&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestJettyHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestJettyHttpClient.java
Wed Nov 24 20:55:06 2010
@@ -107,7 +107,9 @@ public class TestJettyHttpClient impleme
 
         @Override
         protected void onResponseContent(final Buffer content) throws IOException {
-            this.contentLen += content.asArray().length;
+            byte[] tmp = new byte[content.length()];
+            content.get(tmp, 0, tmp.length);
+            this.contentLen += tmp.length;
             super.onResponseContent(content);
         }
 

Modified: httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestNingHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestNingHttpClient.java?rev=1038812&r1=1038811&r2=1038812&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestNingHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-benchmark/src/main/java/org/apache/http/client/benchmark/TestNingHttpClient.java
Wed Nov 24 20:55:06 2010
@@ -56,7 +56,7 @@ public class TestNingHttpClient implemen
             this.client.close();
         }
         AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder()
-            .setKeepAlive(true)
+            .setAllowPoolingConnection(true)
             .setCompressionEnabled(false)
             .setMaximumConnectionsPerHost(c)
             .setMaximumConnectionsTotal(2000)
@@ -94,7 +94,7 @@ public class TestNingHttpClient implemen
     }
 
     public String getClientName() {
-        return "Ning Async HTTP client 1.3";
+        return "Ning Async HTTP client 1.4.0";
     }
 
     static class SimpleAsyncHandler implements AsyncHandler<Object> {



Mime
View raw message