vgs-proxy-spring icon indicating copy to clipboard operation
vgs-proxy-spring copied to clipboard

RestTemplate timeout settings don't work

Open duc-zip opened this issue 3 years ago • 0 comments

We're using the following bean setup with VGS. However, the RestTemplate timeouts don't work. It seems the RestTemplate's request factory is replaced by VGS library.

@Bean
@VgsProxied
fun restTemplate(
    builder: RestTemplateBuilder
): RestTemplate? = builder
    .rootUri(....)
    .setConnectTimeout(1000)
    .setReadTimeout(2000)
    .defaultMessageConverters()
    .build()

duc-zip avatar Mar 02 '22 11:03 duc-zip