Integrated: 8377302: HttpServer::stop uses full timeout duration if handler throws
Daniel Fuchs
dfuchs at openjdk.org
Mon Feb 16 17:04:37 UTC 2026
On Fri, 6 Feb 2026 13:54:06 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.
This pull request has now been integrated.
Changeset: a08c730d
Author: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a08c730d5fae6a80a0fa457aa465fcf6d5e35b8b
Stats: 476 lines in 7 files changed: 396 ins; 17 del; 63 mod
8377302: HttpServer::stop uses full timeout duration if handler throws
Reviewed-by: vyazici, michaelm
-------------
PR: https://git.openjdk.org/jdk/pull/29606
More information about the net-dev
mailing list