test clean ups

This commit is contained in:
Greg Wilkins 2011-11-16 12:54:14 +11:00
parent 0fdc5c5d2e
commit a8173e3d12
1 changed files with 1 additions and 1 deletions

View File

@ -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();