Integrated: 8368249: HttpClient: Translate exceptions thrown by sendAsync
Volkan Yazici
vyazici at openjdk.org
Wed Oct 29 13:15:51 UTC 2025
On Tue, 14 Oct 2025 07:21:21 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
> Ensure `HttpClient::sendAsync` translates every operational failure to an `IOException` as per specification.
>
> `tier1-2` passes with the proposed changes.
>
> **Context:** The parent issue, [JDK-8364733], reports that `HttpClient::sendAsync` leaks exceptions which do not extend from `IOException`, and this violates the method's specification. The [JDK-8367067] (#26876) sub-task improved issues around exceptions thrown by request body publishers – which triggered the first encounter with this problem. This PR (and its associated sub-task) is aimed to end this saga.
>
> [JDK-8364733]: https://bugs.openjdk.org/browse/JDK-8364733
> [JDK-8367067]: https://bugs.openjdk.org/browse/JDK-8367067
This pull request has now been integrated.
Changeset: 2c07214d
Author: Volkan Yazici <vyazici at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2c07214d7c075da5dd4a4e872aef29f58cef2bae
Stats: 298 lines in 2 files changed: 298 ins; 0 del; 0 mod
8368249: HttpClient: Translate exceptions thrown by sendAsync
Reviewed-by: jpai
-------------
PR: https://git.openjdk.org/jdk/pull/27787
More information about the net-dev
mailing list