RFR: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win)

Alan Bateman alanb at openjdk.org
Tue Jun 10 14:42:27 UTC 2025


On Tue, 10 Jun 2025 14:21:07 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> The NativeDispatcher and Net APIs are separate, the latter typically has very platform specific code to configure. So it's just keeping to the existing architecture.
>
>> The NativeDispatcher and Net APIs are separate, the latter typically has very platform specific code to configure.
> 
> I was thinking of the `jdk.internal.util.OperatingSystem.isWindows()` instead of the JNI backed function.
> 
>> So it's just keeping to the existing architecture.
> 
> That answers my question. Thank you.

This area uses platform specific classes + code to allow for porting purposes. Maybe some day we may be able to refactor Net and/or combine with NativeDispatcher but not here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25700#discussion_r2138080120


More information about the nio-dev mailing list