JDK 9 RFR of JDK-8037360: java/nio/channels/SocketChannel/Connect.java fails intermittently

Hamlin Li huaming.li at oracle.com
Thu Apr 7 05:25:34 UTC 2016


Please review the patch for java/nio/channels/SocketChannel/Connect.java 
fails intermittently.

Root Cause: Original test try to build a refusing server by letting 
system pick up a ephemeral port, then closing the ServerSocket, then let 
client to connect this closed ServerSocket, but it's not that stable, I 
think it's related to address/port reuse.
Suggested Fix: In this test, we only want a port that will refuse 
connection always, so just let client connect to port 1 which will 
refuse connection always.

bug: https://bugs.openjdk.java.net/browse/JDK-8037360
webrev: http://cr.openjdk.java.net/~mli/8037360/webrev.00/
jprt result: 
http://scaaa637.us.oracle.com/archive/2016/04/2016-04-07-024139.oracle.dev/logs/

Thank you
-Hamlin


More information about the nio-dev mailing list