RFR: 8260875 (sc)SocketAdaptor$SocketInputStream read throws IllegalBlockingModeException on closed channel
Alan Bateman
Alan.Bateman at oracle.com
Thu Feb 4 14:31:04 UTC 2021
On 04/02/2021 08:55, hedongbo wrote:
>
> Hi Alan, is this 8u webrev ok? I saw that you said patch was fine in
> the last email, so I added jdk8u-fix-request label to JDK-6878250, but
> Andrew said that the patch had not been reviewed. Do I need to make
> any modifications to the patch?
>
> webrev: http://cr.openjdk.java.net/~dongbohe/6878250/webrev.00/
> <http://cr.openjdk.java.net/~dongbohe/6878250/webrev.00/>
>
> bug: https://bugs.openjdk.java.net/browse/JDK-6878250
> <https://bugs.openjdk.java.net/browse/JDK-6878250>
>
>
I'm not involved the JDK 8 update releases. The update to
SocketAdaptor.java is good for JDK-6878250. The test in the webrev isn't
testing the right scenario. Also if the thread created by
testReadAfterClose throws an exception then it's not communicated to the
main thread. To create the scenario you need to configure the
SocketChannel to be non-blocking, close it, then check that
ClosedChannelException is thrown.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210204/e9da8086/attachment.htm>
More information about the nio-dev
mailing list