This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Checking out the project to perform the release ... | |
[INFO] Executing: /bin/sh -c cd /Users/jfarcand/workspace/async-http-client/target && git clone [email protected]:AsyncHttpClient/async-http-client.git /Users/jfarcand/workspace/async-http-client/target/checkout | |
[INFO] Working directory: /Users/jfarcand/workspace/async-http-client/target | |
[INFO] Executing: /bin/sh -c cd /Users/jfarcand/workspace/async-http-client/target/checkout && git pull [email protected]:AsyncHttpClient/async-http-client.git tag async-http-client-1.3.3 | |
[INFO] Working directory: /Users/jfarcand/workspace/async-http-client/target/checkout | |
[ERROR] The git-pull command failed. | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 6.228s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running org.apache.xmlrpc.test.AuthenticationTest | |
log4j:WARN No appenders could be found for logger (org.apache.xmlrpc.server.XmlRpcStreamServer). | |
log4j:WARN Please initialize the log4j system properly. | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.964 sec | |
Running org.apache.xmlrpc.test.JiraTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.222 sec | |
Running org.apache.xmlrpc.test.DynamicProxyTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Async Http Client (AbstractBenchmark benchmark = new AhcBenchmark(5, 50, 50, TARGET_URL)); | |
BenchmarkResult{requestsPerSecond=2937.72, threads=5, batches=50, targetRequests=12500, successfulRequests=12500, failedRequests=0, averageRequestTime=3.40ms, averageBatchTime=8.50ms, totalBenchmarkTime=4.25ms} | |
Apache Http Client (AbstractBenchmark benchmark = new ApacheBenchmark(5, 50, 50, TARGET_URL);) | |
BenchmarkResult{requestsPerSecond=2915.94, threads=5, batches=50, targetRequests=12500, successfulRequests=12500, failedRequests=0, averageRequestTime=3.42ms, averageBatchTime=8.57ms, totalBenchmarkTime=4.28ms} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Apache Wink Client :: Async Http Client 1.1.2-incubating-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cache-Control: must-revalidate,no-cache,no-store | |
Content-Type: text/html;charset=ISO-8859-1 | |
Content-Length: 1293 | |
Server: Jetty(7.1.4.v20100610) | |
2010-11-05 11:51:45,025 [New I/O client worker #206-1] DEBUG com.ning.http.client - [New I/O client worker #206-1] Adding uri: https://localhost:57890 for channel [id: 0x79f58d74, /127.0.0.1:57891 => localhost/127.0.0.1:57890] | |
Tests run: 24, Failures: 0, Errors: 0, Skipped: 6, Time elapsed: 1.424 sec | |
Running com.ning.http.client.async.AsyncStreamHandlerTest | |
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! | |
Running com.ning.http.client.async.AsyncProvidersBasicTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sonatype.aether.util.artifact; | |
/* | |
* Copyright (c) 2010 Sonatype, Inc. All rights reserved. | |
* | |
* This program is licensed to you under the Apache License Version 2.0, | |
* and you may not use this file except in compliance with the Apache License Version 2.0. | |
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. | |
* | |
* Unless required by applicable law or agreed to in writing, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using | |
https://github.com/jfarcand/java-http-client-benchmark | |
demonstrate the performance difference between Apache HC 4 and AsyncHttpClient. Any load numbers produce the same ~3 times performance difference between the client: | |
Apache Http Client 4.0.3 | |
------------------------- | |
BenchmarkResult{requestsPerSecond=818.98, threads=5, batches=50, targetRequests=12500, successfulRequests=12500, failedRequests=0, averageRequestTime=1.22ms, averageBatchTime=3.05ms, totalBenchmarkTime=1.52ms} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AsyncHttpProviderConfig pc = new NettyAsyncHttpProviderConfig()' | |
pc.addProperty(AsyncHttpProviderConfig.DISABLE_NATIVE_SERO_COPY, "true"); | |
AsyncHttpClientConfig c = new AsyncHttpClientConfig.Builder(); | |
c.setAsyncHttpProviderConfig(pc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AsyncHttpClient client = new AsyncHttpClient(); | |
TransferCompletionHandler tl = new TransferCompletionHandler(); | |
tl.addTransferListener(new TransferListener() { | |
public void onStart() { | |
} | |
public void onBytesTransfered(ByteBuffer buffer) { | |
// Do something with the bytes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/org/sonatype/maven/wagon/AhcWagon.java b/src/main/java/org/sonatype/maven/wagon/AhcWagon.java | |
index b6a3d76..fad25f8 100644 | |
--- a/src/main/java/org/sonatype/maven/wagon/AhcWagon.java | |
+++ b/src/main/java/org/sonatype/maven/wagon/AhcWagon.java | |
@@ -269,17 +269,7 @@ public class AhcWagon | |
throw new TransferFailedException( "Error transferring file, server returned status code " + statusCode ); | |
} | |
- String contentEncoding = response.getHeader( "Content-Encoding" ); | |
- boolean isGZipped = contentEncoding == null ? false : "gzip".equalsIgnoreCase( contentEncoding ); |