RFR: 8368249: HttpClient: Translate exceptions thrown by sendAsync [v2]

Volkan Yazici vyazici at openjdk.org
Wed Oct 15 12:00:27 UTC 2025


On Wed, 15 Oct 2025 08:41:52 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
>
> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use `Utils::getCompletionCause`
>   
>   Co-authored-by: Daniel Fuchs <67001856+dfuch at users.noreply.github.com>

`tier1-2` passes on several platforms using e357bbd7149.

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

PR Comment: https://git.openjdk.org/jdk/pull/27787#issuecomment-3406040217


More information about the net-dev mailing list