commit | 68b8d3ada1f6f93a3f9360170287d6264cecec7b | [log] [tgz] |
---|---|---|
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | Thu Mar 19 14:59:03 2020 +0100 |
committer | Tomasz Wrobel <tomasz.wrobel@nokia.com> | Mon Mar 23 09:00:55 2020 +0100 |
tree | aaf06885a2c0a38541df6cf2a7e46371884da4a7 | |
parent | 8b74643e0738bd0266e510a422bf71cc67604f37 [diff] |
Fix timeout issue when cert service is unavailable Issue-ID: AAF-1107 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I0fd5f2615345e9d018af766b665971b90de6c3a0
diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpClientProvider.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpClientProvider.java index ff29a14..5ad933f 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpClientProvider.java +++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpClientProvider.java
@@ -34,7 +34,11 @@ public CloseableHttpClient getClient() { RequestConfig config = - RequestConfig.custom().setConnectionRequestTimeout(timeout).build(); + RequestConfig.custom() + .setConnectionRequestTimeout(timeout) + .setConnectTimeout(timeout) + .setSocketTimeout(timeout) + .build(); return HttpClientBuilder.create().setDefaultRequestConfig(config).build(); } }