From 9c04f460a36090a69fa4e8281d230974ed75e970 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Mon, 4 Nov 2024 14:19:14 +0200 Subject: [PATCH] Update HttpComponents5ClientFactory to use setConnectionTimeout instead setConnectionRequestTimeout to restore the behaviour as before. Fixes #1436 --- .../ws/transport/http/HttpComponents5ClientFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-ws-core/src/main/java/org/springframework/ws/transport/http/HttpComponents5ClientFactory.java b/spring-ws-core/src/main/java/org/springframework/ws/transport/http/HttpComponents5ClientFactory.java index 7d23dc1de..8446561c7 100644 --- a/spring-ws-core/src/main/java/org/springframework/ws/transport/http/HttpComponents5ClientFactory.java +++ b/spring-ws-core/src/main/java/org/springframework/ws/transport/http/HttpComponents5ClientFactory.java @@ -211,13 +211,12 @@ public CloseableHttpClient getObject() throws Exception { if (this.connectionManagerBuilderCustomizer != null) { this.connectionManagerBuilderCustomizer.customize(connectionManagerBuilder); } - this.connectionManager = connectionManagerBuilder.build(); applyMaxConnectionsPerHost(connectionManager); RequestConfig.Builder requestConfigBuilder = RequestConfig.custom() // - .setConnectionRequestTimeout(Timeout.of(connectionTimeout)) // + .setConnectTimeout(Timeout.of(connectionTimeout)) // .setResponseTimeout(Timeout.of(readTimeout)); HttpClientBuilder httpClientBuilder = HttpClientBuilder.create() //