HttpServer.stop will wait for exchanges to complete and set the finished flag to true. This never happens because there were no inflight exhanges when the stop/shutdown was initiated.
See https://github.com/openjdk/jdk/pull/24418#issuecomment-2778350297
"HttpServer.stop should probably look at exchangeCount too - but that will require some thinking to get the asynchronous stops to work correctly."
See https://github.com/openjdk/jdk/pull/24418#issuecomment-2778350297
"HttpServer.stop should probably look at exchangeCount too - but that will require some thinking to get the asynchronous stops to work correctly."
- duplicates
-
JDK-8304065 HttpServer.stop should terminate immediately if no exchanges are in progress
-
- Open
-