RFR: 8316580: HttpClient with StructuredTaskScope does not close when a task fails [v3]

Mikko Apo duke at openjdk.org
Thu Sep 28 10:24:24 UTC 2023


On Thu, 28 Sep 2023 10:08:46 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> I'm the submitter of the bug report. I found the issue when the server was down and nothing was listening in the port.
>> 
>> The bug also happens if there is a server listening in the port, the server sends a response and the code running in the subtask throws an Exception. For this case it seems I need to use more concurrent threads to achieve the same effect. For no servers 70 was enough but for a running server I need 200.
>> 
>> The test program I wrote is available at: https://github.com/mikko-apo/jvm21-demo/blob/main/jvm21-demo/src/main/java/fi/iki/apo/HttpGetBurst.java and I use it against helidon/quickstart-standalone-mp-4m2 which is in the same repository.
>
> Thanks @mikko-apo - the JBS issue also has a reproducer and I have verified that it no longer fails with the proposed fix.

@dfuch Great that you managed to get that fixed so quickly :)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15883#discussion_r1339885856


More information about the net-dev mailing list