[jdk17u-dev] RFR: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) [v2]

Goetz Lindenmaier goetz at openjdk.org
Thu Nov 6 11:25:30 UTC 2025


On Wed, 29 Oct 2025 14:57:54 GMT, Voznia Anton <duke at openjdk.org> wrote:

>> Hi @AlanBateman, thanks for having a look!
>
>> > @GoeLin btw, it seems the introduced test passes always. I ran it with jtreg on windows arm without the fix in place. Did I run it incorrectly? 🤔
>> 
>> Does the test from [openjdk/jdk21u-dev#2137](https://github.com/openjdk/jdk21u-dev/pull/2137) always fail in jdk21u without the fix? I guess that the problem is better reproducible with loom. Ah, I can see that your test in #3936 is different. Can it reproduce the issue better?
> 
> @TheRealMDoerr for me, it's reproducible with the test from my PR.

Hi @antonvoznia, 
yes, we obviously need the setDeamon(true) you added in your test.
This makes the test fail without the fix. 
I add the differences to your test if you don't mind.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4076#issuecomment-3496685567


More information about the jdk-updates-dev mailing list