You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/02/05 12:26:28 UTC
svn commit: r1781738 -
/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.java
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);