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

Michael McMahon michael.x.mcmahon at oracle.com
Thu May 16 13:43:50 UTC 2019


This looks fine to me Alan.

- Michael.

On 16/05/2019, 14:10, Alan Bateman wrote:
> 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