8031563: TEST_BUG: java/nio/channels/Selector/ChangingInterests.java failed once
Reviewed-by: alanb
Contributed-by: michael.cui@oracle.com
--- a/jdk/test/java/nio/channels/Selector/ChangingInterests.java Tue Mar 25 09:31:37 2014 +0000
+++ b/jdk/test/java/nio/channels/Selector/ChangingInterests.java Tue Mar 25 10:14:09 2014 +0000
@@ -138,8 +138,10 @@
ServerSocketChannel.open().bind(new InetSocketAddress(0));
final SocketChannel sc = SocketChannel.open();
+ sc.setOption(StandardSocketOptions.TCP_NODELAY, true);
sc.connect(new InetSocketAddress(lh, ssc.socket().getLocalPort()));
SocketChannel peer = ssc.accept();
+ peer.setOption(StandardSocketOptions.TCP_NODELAY, true);
sc.configureBlocking(false);