hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1781738 - /httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java
Date Sun, 05 Feb 2017 12:26:28 GMT
Author: olegk
Date: Sun Feb  5 12:26:28 2017
New Revision: 1781738

URL: http://svn.apache.org/viewvc?rev=1781738&view=rev
Log:
HTTPASYNC-110: Default exchange handler fails to correctly re-use fully established tunnelled
connection leased from the pool when CONNECT request results in 407 over connection that cannot
be kept alive.

Modified:
    httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java

Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java?rev=1781738&r1=1781737&r2=1781738&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java
(original)
+++ httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java
Sun Feb  5 12:26:28 2017
@@ -320,6 +320,11 @@ abstract class AbstractClientExchangeHan
                 return;
             }
 
+            if (this.connmgr.isRouteComplete(managedConn)) {
+                this.routeEstablished.set(true);
+                this.routeTrackerRef.set(null);
+            }
+
             final HttpContext context = managedConn.getContext();
             synchronized (context) {
                 context.setAttribute(HttpAsyncRequestExecutor.HTTP_HANDLER, this);



Mime
View raw message