Updated HttpCore and Ning dependencies; made Jetty client read response content

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1038812 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2010-11-24 20:55:06 +00:00
parent 317cddd89a
commit f1c80c6a73
3 changed files with 7 additions and 5 deletions

View File

@ -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>

View File

@ -107,7 +107,9 @@ public class TestJettyHttpClient implements TestHttpAgent {
@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);
}

View File

@ -56,7 +56,7 @@ public class TestNingHttpClient implements TestHttpAgent {
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 implements TestHttpAgent {
}
public String getClientName() {
return "Ning Async HTTP client 1.3";
return "Ning Async HTTP client 1.4.0";
}
static class SimpleAsyncHandler implements AsyncHandler<Object> {