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.
e6c37d698f
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 | 2 years ago | |
spring-boot-actuator | 2 years ago | |
spring-boot-actuator-autoconfigure | 2 years ago | |
spring-boot-autoconfigure | 2 years ago | |
spring-boot-dependencies | 2 years ago | |
spring-boot-devtools | 2 years ago | |
spring-boot-docs | 2 years ago | |
spring-boot-parent | 2 years ago | |
spring-boot-starters | 2 years ago | |
spring-boot-test | 2 years ago | |
spring-boot-test-autoconfigure | 2 years ago | |
spring-boot-tools | 2 years ago |