changeset 23576:ec3f230ed099

8031563: TEST_BUG: java/nio/channels/Selector/ChangingInterests.java failed once Reviewed-by: alanb Contributed-by: michael.cui@oracle.com
author alanb
date Tue, 25 Mar 2014 10:14:09 +0000
parents 6fd9136dc579
children 08ef6549e6a2 fa4caa7b4827
files jdk/test/java/nio/channels/Selector/ChangingInterests.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);