RFR: 8377302: HttpServer::stop uses full timeout duration if handler throws [v2]

Daniel Fuchs dfuchs at openjdk.org
Tue Feb 10 10:03:19 UTC 2026


> 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>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29606/files
  - new: https://git.openjdk.org/jdk/pull/29606/files/8cff50d8..596f4fa7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29606&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29606&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/29606.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29606/head:pull/29606

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


More information about the net-dev mailing list