test clean ups
This commit is contained in:
parent
0fdc5c5d2e
commit
a8173e3d12
|
@ -139,7 +139,7 @@ public class IOTest
|
|||
ServerSocketChannel connector = ServerSocketChannel.open();
|
||||
connector.socket().bind(null);
|
||||
|
||||
Socket client = new Socket("localhost",connector.socket().getLocalPort());
|
||||
Socket client = SocketChannel.open(connector.socket().getLocalSocketAddress()).socket();
|
||||
client.setSoTimeout(1000);
|
||||
client.setSoLinger(false,-1);
|
||||
Socket server = connector.accept().socket();
|
||||
|
|
Loading…
Reference in New Issue