You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-project
Andy Wilkinson e6c37d698f Reinstate support for read timeouts with RestTemplateBuilder
Refactor the way `ClientHttpRequestFactory` instances are created in
order to support setting read timeouts.

Prior to this commit, the reflection based approach would call
`setReadTimeout`. As of Spring Framework 6.0, the
`HttpComponentsClientHttpRequestFactory` class no longer supports this
approach. The timeout must be set on the `HttpClientConnectionManager`
used in the `HttpClient` which can be passed in to the constructor.

In order to support this approach, the `ClientHttpRequestFactory` can
now be created using a `Function` rather than a `Supplier`. The
function accepts a `ClientHttpRequestFactorySettings` which provides
the timeout settings to apply.

The `ClientHttpRequestFactories` utility class provides methods to
create `ClientHttpRequestFactory` instances that respect the settings.
Whenever possible, these are created without using reflection.

Fixes gh-32857

Co-authored-by: Phillip Webb <pwebb@vmware.com>
2 years ago
..
spring-boot Reinstate support for read timeouts with RestTemplateBuilder 2 years ago
spring-boot-actuator Polish 2 years ago
spring-boot-actuator-autoconfigure Polish 2 years ago
spring-boot-autoconfigure Polish 2 years ago
spring-boot-dependencies Start building against Spring Framework 6.0.0-RC3 snapshots 2 years ago
spring-boot-devtools Polish 2 years ago
spring-boot-docs Polish docs 2 years ago
spring-boot-parent Compile against SnakeYAML 1.32 and test against older versions 2 years ago
spring-boot-starters Configure the Native buildpack when enabling the native Maven profile 2 years ago
spring-boot-test Reinstate support for read timeouts with RestTemplateBuilder 2 years ago
spring-boot-test-autoconfigure Polish 2 years ago
spring-boot-tools Add Build-Jdk-Spec to jar and war manifest when building with Gradle 2 years ago