adding rsockets support into JDK
Alan Bateman
Alan.Bateman at oracle.com
Fri Dec 14 18:26:27 UTC 2018
On 14/12/2018 17:47, Chris Hegarty wrote:
> :
> 3) I think your work-around for Issue #1 is probably ok. I refined it a
> little so avoid accessing the flags unless necessary. I think this may
> be slightly more efficient, since the typical non-blocking usage will
> be preceded by a select/rpoll.
>
> src/jdk.net/linux/native/libextnet/LinuxRdmaSocketDispatcherImpl.c
> http://cr.openjdk.java.net/~chegar/rsocket/webrev.25.3/
>
I don't think we should have the workaround at this level. The native
methods should be just simple wrappers on rs_read/rs_write. If there is
no hope of getting the RDMA library fixed then we should configure the
rsocket to be non-blocking at create and emulate blocking in the
RdmaSocketChannelImpl.
-Alan.
More information about the nio-dev
mailing list