adding rsockets support into JDK
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 21 17:50:23 UTC 2018
On 20/11/2018 17:08, Lu, Yingqi wrote:
> :
>
> The IPv6 addresses work with rsocket when both server and client use IPv6 addresses. However, the IPv4-mapped addresses does not work. If IPv6 is enabled on RDMA adaptors (which I believe it does in majority of the cases), current JDK uses IPv6 by default. Then -Djava.net.preferIPv4Stack=true is needed if applications use IPv4 addresses.
>
I see we originally discussed this issue here in April and at the time
you did say that rsockets doesn't support IPv4-mapped IPv6 addresses. Do
you know if there are plans to fix that issue? Requiring
-Djava.net.preferIPv4Stack=true on the command line will make this
feature awkward as it impacts all sockets and it may be better to just
forgo support for IPv6 addresses in the short term (meaning create a
AF_INET socket even if IPv6 is enabled). The alternative is of course to
specify the protocol factory at creation time as Chris suggests but that
also puts a tax on all usages too.
-Alan
More information about the nio-dev
mailing list