s.connect(new InetSocketAddress(serverAddress, SERVER_PORT), 2000);
s.connect(new InetSocketAddress(serverAddress, SERVER_PORT), 4000);
    public void assertConnections(int number) throws IOException {        ArrayList<Socket> clients= new ArrayList<Socket>();                // Connect # of sockets using 2 seconds timeout        for (int i= 0; i < number; i++) {            try {                Socket s= new Socket();                s.connect(new InetSocketAddress(serverAddress, SERVER_PORT), 2000);                s.setTcpNoDelay(true);                clients.add(s);            } catch (IOException e) {                System.out.println("Socket #" + i + " ~ " + e);                while (i-- > 0) {                    clients.get(i).close();                }                clients.clear();                   throw new ConnectException("#" + i + ": " + e.getMessage());            }        }        try {            for (int i= 0; i < number; i++) {                this.assertCommunications(clients.get(i), "#" + i);            }        } finally {            for (int i= 0; i < number; i++) {                clients.get(i).close();            }            clients.clear();        }    }