public void removeConnectingSocket(Socket socket){
synchronized (connectingSockets) {
    connectingSockets.remove(socket);
  }
}

public void removeConnectingSocket ( Socket socket ) { synchronized ( connectingSockets ) { connectingSockets . remove ( socket ) ; } }
remove a socket from the tracked set . it should be connected at this point
