Skip to content

Commit

Permalink
Merge pull request #334 from navikt/chore/reduser_timeout
Browse files Browse the repository at this point in the history
Endre timeout til 5 sekunder
  • Loading branch information
rinnan17 authored Apr 24, 2024
2 parents 2831a5d + b6864ae commit b05cc8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class BidragGrunnlagConfig {
fun restTemplate(): HttpHeaderRestTemplate {
val httpHeaderRestTemplate = HttpHeaderRestTemplate()

val sc = SocketConfig.custom().setSoTimeout(Timeout.ofSeconds(10)).build()
val sc = SocketConfig.custom().setSoTimeout(Timeout.ofSeconds(3)).build()
val pb = PoolingHttpClientConnectionManagerBuilder.create().setDefaultSocketConfig(sc).build()
val connectionManager = HttpClientBuilder.create().setConnectionManager(pb).build()
val requestFactory = HttpComponentsClientHttpRequestFactory(connectionManager)
Expand Down

0 comments on commit b05cc8c

Please sign in to comment.