RFR: 8260875 (sc)SocketAdaptor$SocketInputStream read throws IllegalBlockingModeException on closed channel
Alan Bateman
Alan.Bateman at oracle.com
Tue Feb 2 08:20:51 UTC 2021
On 02/02/2021 06:06, hedongbo wrote:
>
> Hi,
>
> Please review this changes.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8260875
> <https://bugs.openjdk.java.net/browse/JDK-8260875>
>
> webrev: http://cr.openjdk.java.net/~dongbohe/8260875/webrev.00/
> <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/0d46172d/attachment-0001.htm>
More information about the nio-dev
mailing list