Affects: 6
When using JdkClientHttpRequestFactory
the request may block indefinitely, even if a request timeout is configured.
Details about the issue:
- https://mail.openjdk.org/pipermail/net-dev/2021-October/016672.html
- https://bugs.openjdk.org/browse/JDK-8258397
This is the problematic line, that should be updated to an async call with an immediate get on the CompletableFuture
:
https://github.com/spring-projects/spring-framework/blob/28e5468162d5a643cb0cf987f59fa4794c7714b8/spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java#L94