8223442: java/nio/channels/SocketChannel/AdaptorStreams.java testConcurrentTimedReadWrite3(): failure

Alan Bateman Alan.Bateman at oracle.com
Thu May 16 13:10:34 UTC 2019


One of the tests in the recently added AdaptorStreams.java has failed a 
few times on Windows. It turns out to be a long standing Windows 
specific issue, it just happens that this test creates the right 
conditions to tickle it.

The issue arises when asynchronously closing a socket when the channel 
is configured blocking. The Windows implementation need to invalidate 
the FileDescriptor before closing so it works the same as classic 
networking.

The webrev with the proposed change is here.
    http://cr.openjdk.java.net/~alanb/8223442/webrev/

-Alan


More information about the nio-dev mailing list