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

Alan Bateman Alan.Bateman at oracle.com
Mon Feb 23 11:21:20 UTC 2015


On 23/02/2015 11:14, Chris Hegarty 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.
I think it would be better to avoid this and just check for 
sendUgrentData returning 0.

>
> Otherwise, I'm happy to see this go into JDK 9, with a possible 
> backport at some point in the future.
Yes, I don't see any reason to push this to 8uX first.

-Alan


More information about the nio-dev mailing list