RFR: 8377302: HttpServer::stop uses full timeout duration if handler throws [v2]
Volkan Yazici
vyazici at openjdk.org
Tue Feb 10 10:19:07 UTC 2026
On Tue, 10 Feb 2026 10:03:19 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> When a HttpHandler::handle method throws an unexpected exception, the HttpServer rightfully closes the associated connection. However, the exchange is still discounted as pending, which causes HttpServer::stop to wait for the full timeout duration, even though all connections have been closed.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>
> Update test/jdk/com/sun/net/httpserver/FailAndStopTest.java
>
> Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
Marked as reviewed by vyazici (Committer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/29606#pullrequestreview-3778038601
More information about the net-dev
mailing list