RFR: 8208693: HttpClient: Extend the request timeout's scope to cover the response body
Konrad Windszus
duke at openjdk.org
Wed Oct 22 11:54:31 UTC 2025
On Wed, 24 Sep 2025 13:24:35 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
> Currently `HttpRequest::timeout` only applies until the response headers are received. Extend its scope to also cover the consumption of the response body.
>
> ### Review guidelines
>
> 1. Read _"the fix"_ in `MultiExchange`
> 2. Skim through the test server *handler* in `TimeoutResponseTestSupport`
> 3. Review first `TimeoutResponseHeaderTest`, and then `TimeoutResponseBodyTest` (Mind the multiple `@test` blocks!)
@vy Thanks a lot for driving this. I think also the javadoc of the request timeout should be clarified with what timeframe exactly it refers to.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27469#issuecomment-3397015424
More information about the net-dev
mailing list