RFR: 8211851: (ch) java/nio/channels/AsynchronousSocketChannel/StressLoopback.java times out (aix) [v2]

Joachim Kern jkern at openjdk.org
Tue Dec 10 13:48:16 UTC 2024


On Mon, 9 Dec 2024 15:20:11 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> I tried this first, but `IOUtil.configureBlocking(fd, blocking)` needs a `FileDescriptor` object instead of an `int`:
>> `public static native void configureBlocking(FileDescriptor fd, boolean blocking)`
>> And I did not find any public FileDescriptor constructor taking an `int`.
>> I would be happy for any hint to avoid this double implementation of configureBlocking
>
>> I tried this first, but `IOUtil.configureBlocking(fd, blocking)` needs a `FileDescriptor` object instead of an `int`: `public static native void configureBlocking(FileDescriptor fd, boolean blocking)` And I did not find any public FileDescriptor constructor taking an `int`. I would be happy for any hint to avoid this double implementation of configureBlocking
> 
> IOUtil.newFD is there if you need it.

I followed your hint. Please refer to commit 'use IOUtil.configureBlocking'

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22633#discussion_r1878122463


More information about the nio-dev mailing list