adding rsockets support into JDK
Alan Bateman
Alan.Bateman at oracle.com
Sat Dec 8 16:09:56 UTC 2018
On 08/12/2018 09:39, Chris Hegarty wrote:
> :
>
> - It has become apparent that mixing blocking and non-blocking
> connect/accept operations, in the same thread, may cause issues. For
> example, attempting to setup a connected-socket on the same host by
> issuing a non-blocking connect followed by a blocking accept, will
> just hang and not make progress [3]. Upon further enquiries it appears
> that the programming model for rsocket is a subtly different than that
> of the regular Berkeley sockets ( at least for the connection
> handshake ). It is not immediately clear how to reasonably workaround
> this issue ( it's not a bug in rdma-core, but more a fundamental part
> of its thread-less operation ).
>
Would it be possible to expand on this to say whether the same issues
arises when the non-blocking connect is initiated on a different thread,
or in a different process, or even a different machine on the fabric.
That is, if the socket is non-blocking and I do a rconnect and then
delay before doing anything else on the socket then will the peer doing
accept be blocked/hung in the mean-time?
-Alan
More information about the nio-dev
mailing list