79486013

Date: 2025-03-05 09:42:27
Score: 2.5
Natty:
Report link

Read timeout setter has been returned into HttpComponentsClientHttpRequestFactory in spring-web 6.2.0.

For spring-web 6.0.x or 6.1.x you have to create RequestConfig and set read timeout as response timeout: https://github.com/spring-projects/spring-framework/blob/v6.2.0/spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java#L314

The RequestConfig should be provided to HttpClientBuilder:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Guram Savinov