RFR: 8316580: HttpClient with StructuredTaskScope does not close when a task fails [v3]
Daniel Fuchs
dfuchs at openjdk.org
Thu Sep 28 10:11:25 UTC 2023
On Wed, 27 Sep 2023 12:53:20 GMT, Mikko Apo <duke at openjdk.org> wrote:
>> @djelinski Now done.
>
> 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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15883#discussion_r1339869748
More information about the net-dev
mailing list