diff --git a/test/java/nio/channels/Selector/ChangingInterests.java b/test/java/nio/channels/Selector/ChangingInterests.java index 59f621006760b00cb23a3b08c8475dcd84f97bdb..c3e1dbd0964145136b9d0eaffed1d8d0d9549f8a 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);