On Fri, 7 May 2021 18:38:41 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
> Hi, > > Please find here a fix to prevent an assertion error from firing in the > com.sun.net.httpserver. > > The issue occurs systematically when all of these conditions are met: > > 1. System assertions are enabled > 2. The handler doesn't read or close the request input stream > 3. The handler sends a reply with no content (just headers, but no body) > 3. The handler doesn't close the response output stream > 4. The handler doesn't close the HttpExchange > > The test fails with the assertion error when run without the fix (provided > system assertions are enabled) and passes with the fix. This pull request has now been integrated. Changeset: 2d2cd78b Author: Daniel Fuchs <dfu...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/2d2cd78bde7bb9101614a1ba2285d1e37d5d3249 Stats: 245 lines in 3 files changed: 241 ins; 4 del; 0 mod 8266761: AssertionError in sun.net.httpserver.ServerImpl.responseCompleted Reviewed-by: chegar ------------- PR: https://git.openjdk.java.net/jdk/pull/3923