From 8f726215bc559d14b64ef5c142e2c2ab5329d7b9 Mon Sep 17 00:00:00 2001 From: alanb Date: Tue, 25 Mar 2014 10:14:09 +0000 Subject: [PATCH] 8031563: TEST_BUG: java/nio/channels/Selector/ChangingInterests.java failed once Reviewed-by: alanb Contributed-by: michael.cui@oracle.com --- test/java/nio/channels/Selector/ChangingInterests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/java/nio/channels/Selector/ChangingInterests.java b/test/java/nio/channels/Selector/ChangingInterests.java index 59f621006..c3e1dbd09 100644 --- a/test/java/nio/channels/Selector/ChangingInterests.java +++ b/test/java/nio/channels/Selector/ChangingInterests.java @@ -138,8 +138,10 @@ public class ChangingInterests { 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); -- GitLab