diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-03-23 08:21:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-23 08:21:05 +0000 |
commit | d21436888be42d4ddc9a3311ee97ea2f30006791 (patch) | |
tree | ecb6068f16d8cff388b25684faae12e89788e5a6 /certServiceClient/src/main | |
parent | 6b0411985f51a9368df7a5e97a896ae37d994382 (diff) | |
parent | 68b8d3ada1f6f93a3f9360170287d6264cecec7b (diff) |
Merge "Fix timeout issue when cert service is unavailable"
Diffstat (limited to 'certServiceClient/src/main')
-rw-r--r-- | certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpClientProvider.java | 6 |
1 files changed, 5 insertions, 1 deletions
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 ff29a14d..5ad933ff 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 class CloseableHttpClientProvider { 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(); } } |