From 26d9b36a18aa9befade7a36c369a4272d2413327 Mon Sep 17 00:00:00 2001 From: Clemens Zagler Date: Tue, 17 Sep 2024 11:38:44 +0200 Subject: [PATCH] radelt: #665 add a http timeout to prevent DC hanging --- .../main/java/com/opendatahub/bdp/radelt/RadeltAPIClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-collectors/radelt/src/main/java/com/opendatahub/bdp/radelt/RadeltAPIClient.java b/data-collectors/radelt/src/main/java/com/opendatahub/bdp/radelt/RadeltAPIClient.java index 3340d665..0e8d9853 100644 --- a/data-collectors/radelt/src/main/java/com/opendatahub/bdp/radelt/RadeltAPIClient.java +++ b/data-collectors/radelt/src/main/java/com/opendatahub/bdp/radelt/RadeltAPIClient.java @@ -43,7 +43,7 @@ public enum Language { @Bean - public CloseableHttpClient httpClient(){ + public static CloseableHttpClient httpClient(){ int timeout = 30 * 1000; RequestConfig rc = RequestConfig.custom() .setConnectTimeout(timeout)