From c6a7119958d3400f49ceedff0af6aa128cf82e6c Mon Sep 17 00:00:00 2001 From: Johan Blomgren Date: Mon, 28 Aug 2023 10:42:19 +0200 Subject: [PATCH] =?UTF-8?q?2s=20connectTimeout=20burde=20v=C3=A6re=20tilst?= =?UTF-8?q?rekkelig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../libs/http/config/RestTemplateConfiguration.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http-client/main/no/nav/tilleggsstonader/libs/http/config/RestTemplateConfiguration.kt b/http-client/main/no/nav/tilleggsstonader/libs/http/config/RestTemplateConfiguration.kt index a99d7bd..9445a54 100644 --- a/http-client/main/no/nav/tilleggsstonader/libs/http/config/RestTemplateConfiguration.kt +++ b/http-client/main/no/nav/tilleggsstonader/libs/http/config/RestTemplateConfiguration.kt @@ -55,7 +55,7 @@ class RestTemplateConfiguration { mdcValuesPropagatingClientInterceptor: MdcValuesPropagatingClientInterceptor, ): RestTemplateBuilder { return restTemplateBuilder - .setConnectTimeout(Duration.of(5, ChronoUnit.SECONDS)) + .setConnectTimeout(Duration.of(2, ChronoUnit.SECONDS)) .setReadTimeout(Duration.of(25, ChronoUnit.SECONDS)) .additionalInterceptors( consumerIdClientInterceptor, @@ -86,8 +86,6 @@ class RestTemplateConfiguration { bearerTokenClientInterceptor: BearerTokenClientInterceptor, ): RestOperations { return restTemplateBuilder - .setConnectTimeout(Duration.of(5, ChronoUnit.SECONDS)) - .setReadTimeout(Duration.of(25, ChronoUnit.SECONDS)) .additionalInterceptors(bearerTokenClientInterceptor) .build() }