RFR: 8260875 (sc)SocketAdaptor$SocketInputStream read throws IllegalBlockingModeException on closed channel

hedongbo hedongbo at huawei.com
Tue Feb 2 09:33:11 UTC 2021


Yes, I want to fix this on 8. Webrev is also for 8.
Backport JDK-8246707 to 11 can solve this problem in 11, and I am doing this backport.


Thanks,
Dongbohe

From: Alan Bateman [mailto:Alan.Bateman at oracle.com]
Sent: Tuesday, February 2, 2021 4:21 PM
To: hedongbo <hedongbo at huawei.com>; nio-dev at openjdk.java.net
Subject: Re: RFR: 8260875 (sc)SocketAdaptor$SocketInputStream read throws IllegalBlockingModeException on closed channel

On 02/02/2021 06:06, hedongbo wrote:

Hi,

Please review this changes.
Bug: https://bugs.openjdk.java.net/browse/JDK-8260875
webrev: http://cr.openjdk.java.net/~dongbohe/8260875/webrev.00/


Testing:  jdk_tier1

Hi,

I spotted JDK-8260875 today and closed it as a dup of JDK-6878250 before seeing your mail. The socket adaptor was significantly re-written in JDK 13 and the newer implementation checks the channel state before the blocking mode. This means that ClosedChannelException is thrown if you attempt to read and the underlying channel was configured non-blocking before it was closed. So are you looking to fix this in 11u or 8u?

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210202/27528d31/attachment-0001.htm>


More information about the nio-dev mailing list