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:
parent
317cddd89a
commit
f1c80c6a73
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue