(teststabilization) RFR: 8208281: java/nio/channels/AsynchronousSocketChannel/Basic.java timed out
Daniel Fuchs
daniel.fuchs at oracle.com
Fri Dec 20 11:26:33 UTC 2019
Hi,
Please find below a trivial fix that might solve the test issue for:
8208281: java/nio/channels/AsynchronousSocketChannel/Basic.java
timed out
https://bugs.openjdk.java.net/browse/JDK-8208281
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8208281/webrev.00/
The test creates a ServerSocket, then connect a client to it,
then close the client, accept the connection, and close the
accepted connection.
The test has been observed infrequently blocking in the accept()
method on Windows platform.
My suspicion is that maybe closing the client socket before accepting
the connection on the server side might have enabled the kernel to
consider that the connection had never happened, and it's now
waiting for a *new* connection, which never comes.
This fix proposes to simply accept the socket before closing
the client. I haven't been able to reproduce the issue, so I
have no proof that my suspicion is right.
However, the fix is trivial, eliminates that possible cause
for the failure, and doesn't change what the test is testing
in any way, so I believe it's worth doing it.
best regards,
-- daniel
More information about the nio-dev
mailing list