8031563: TEST_BUG: java/nio/channels/Selector/ChangingInterests.java failed once
authoralanb
Tue, 25 Mar 2014 10:14:09 +0000
changeset 23576 ec3f230ed099
parent 23575 6fd9136dc579
child 23577 08ef6549e6a2
child 23578 fa4caa7b4827
8031563: TEST_BUG: java/nio/channels/Selector/ChangingInterests.java failed once Reviewed-by: alanb Contributed-by: michael.cui@oracle.com
jdk/test/java/nio/channels/Selector/ChangingInterests.java
--- 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);