提交 8f726215 编写于 作者: A alanb

8031563: TEST_BUG: java/nio/channels/Selector/ChangingInterests.java failed once

Reviewed-by: alanb
Contributed-by: michael.cui@oracle.com
上级 08e3ca87
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册