changeset 13509:70555c8718d9

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 2f6332c1e882
children c0a7a4829d6a
files test/java/nio/channels/Selector/ChangingInterests.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/channels/Selector/ChangingInterests.java	Thu Dec 19 18:13:19 2013 +0000
+++ b/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);