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 2022/06/29 07:55:00 UTC
[httpcomponents-client] branch master updated: HTTPCLIENT-2225: connection route calculation does not take the default RequestConfig into account
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/master by this push:
new 377112937 HTTPCLIENT-2225: connection route calculation does not take the default RequestConfig into account
377112937 is described below
commit 37711293767383ade39d384fd3576665a3a5f033
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Jun 29 09:43:07 2022 +0200
HTTPCLIENT-2225: connection route calculation does not take the default RequestConfig into account
---
.../hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java
index 1e488267d..4e9a7379b 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java
@@ -184,6 +184,9 @@ abstract class InternalAbstractHttpAsyncClient extends AbstractHttpAsyncClientBa
if (requestConfig != null) {
clientContext.setRequestConfig(requestConfig);
}
+
+ setupContext(clientContext);
+
final HttpRoute route = determineRoute(
httpHost != null ? httpHost : RoutingSupport.determineHost(request),
clientContext);
@@ -194,8 +197,6 @@ abstract class InternalAbstractHttpAsyncClient extends AbstractHttpAsyncClientBa
}
final AsyncExecRuntime execRuntime = createAsyncExecRuntime(pushHandlerFactory);
- setupContext(clientContext);
-
final AsyncExecChain.Scheduler scheduler = this::executeScheduled;
final AsyncExecChain.Scope scope = new AsyncExecChain.Scope(exchangeId, route, request, future,