Integrated: 8208693: HttpClient: Extend the request timeout's scope to cover the response body

Volkan Yazici vyazici at openjdk.org
Thu Dec 4 09:43:26 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!)

This pull request has now been integrated.

Changeset: 16699a39
Author:    Volkan Yazici <vyazici at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/16699a394d4d6c2b8a21e7de3c3d344c5a3309b4
Stats:     1093 lines in 15 files changed: 1068 ins; 5 del; 20 mod

8208693: HttpClient: Extend the request timeout's scope to cover the response body

Reviewed-by: jpai, dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/27469


More information about the net-dev mailing list