Skip to content

Commit

Permalink
Endre timeout til 10 sekunder
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Mar 13, 2024
1 parent 9a67fe8 commit dd7c4be
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(30)).build()
val sc = SocketConfig.custom().setSoTimeout(Timeout.ofSeconds(10)).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 dd7c4be

Please sign in to comment.