RFR: 8266761: AssertionError in sun.net.httpserver.ServerImpl.responseCompleted [v3]

Chris Hegarty chegar at openjdk.java.net
Tue May 11 08:15:56 UTC 2021


On Mon, 10 May 2021 19:31:32 GMT, Daniel Fuchs <dfuchs at 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.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Removed obsolete comments

Marked as reviewed by chegar (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/3923


More information about the net-dev mailing list