[8u60] RFR of 8071599: (so) Socket adapter sendUrgentData throws IllegalBlockingMode when channel configured non-blocking

Brian Burkhalter brian.burkhalter at oracle.com
Mon Feb 23 21:11:10 UTC 2015


On Feb 23, 2015, at 3:14 AM, Chris Hegarty <chris.hegarty at oracle.com> wrote:

> I think it was me that suggested to Brian, off-list, to pass the boolean blocking mode down to the native layer. Doing this will return an IOException with a consistent detail message on all platforms. If we do not do this, and leave it to convertReturnVal, then an IOException will still be raised, but it may have a different detail message on different platforms. I don't have a strong preference either way.

This is exactly the point: this approach gives complete consistency across all platforms but at the expense of a little extra code complexity.

> Otherwise, I'm happy to see this go into JDK 9, with a possible backport at some point in the future.

I ported the previously proposed 8u60 patch to JDK 9 and will post a new RFR for it. The discussion about whether to modify SocketChannelImpl may be continued in that thread.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20150223/53843b4a/attachment.html>


More information about the nio-dev mailing list