hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1398062 - /httpcomponents/httpcore/branches/4.2.x/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java
Date Sun, 14 Oct 2012 12:04:30 GMT
Author: olegk
Date: Sun Oct 14 12:04:29 2012
New Revision: 1398062

URL: http://svn.apache.org/viewvc?rev=1398062&view=rev
Log:
Fixed handling of protocol errors and non-200 responses in HttpCore AB

Modified:
    httpcomponents/httpcore/branches/4.2.x/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java

Modified: httpcomponents/httpcore/branches/4.2.x/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.2.x/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java?rev=1398062&r1=1398061&r2=1398062&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.2.x/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java
(original)
+++ httpcomponents/httpcore/branches/4.2.x/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java
Sun Oct 14 12:04:29 2012
@@ -169,6 +169,7 @@ class BenchmarkWorker implements Runnabl
                     if (this.verbosity >= 2) {
                         System.err.println("Failed HTTP request : " + e.getMessage());
                     }
+                    conn.shutdown();
                     continue;
                 }
 
@@ -178,7 +179,6 @@ class BenchmarkWorker implements Runnabl
                     stats.incSuccessCount();
                 } else {
                     stats.incFailureCount();
-                    continue;
                 }
 
                 HttpEntity entity = response.getEntity();



Mime
View raw message