hg: jdk/jdk: 8246707: (sc) SocketChannel.read/write throws AsynchronousCloseException on closed channel

patrick.concannon at oracle.com patrick.concannon at oracle.com
Wed Aug 12 11:34:18 UTC 2020


Changeset: c8c6030e4d1f
Author:    pconcannon
Date:      2020-08-12 12:32 +0100
URL:       https://hg.openjdk.java.net/jdk/jdk/rev/c8c6030e4d1f

8246707: (sc) SocketChannel.read/write throws AsynchronousCloseException on closed channel
Summary: This fix addresses an issue where an AsynchronousCloseException was being thrown instead of a ChannelClosedException when SocketChannel.write() is called on a closed SocketChannel.
Reviewed-by: alanb, chegar, dfuchs
Contributed-by: Conor Cleary <conor.cleary at oracle.com>

! src/java.base/share/classes/sun/nio/ch/SocketChannelImpl.java
+ test/jdk/java/nio/channels/SocketChannel/ReadWriteAfterClose.java



More information about the jdk-changes mailing list