Skip to content

Commit

Permalink
2s connectTimeout burde være tilstrekkelig
Browse files Browse the repository at this point in the history
  • Loading branch information
blommish committed Aug 28, 2023
1 parent e4e4330 commit c6a7119
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit c6a7119

Please sign in to comment.