Fixing the duplicate creation of SocketConfig and RequestConfig
@@ -99,8 +99,8 @@ public CloseableHttpClient createHttpClient(Credentials credentials, int connect
HttpClientBuilder builder = HttpClientBuilder.create()
.setConnectionManager(getClientConnectionManager())
- .setDefaultSocketConfig(createSocketConfig(socketTimeout))
- .setDefaultRequestConfig(createRequestConfig(connectionTimeout, socketTimeout))
+ .setDefaultSocketConfig(socketConfig)
+ .setDefaultRequestConfig(requestConfig)
.setRoutePlanner(createRoutePlanner());
if (credentials != null) {
