public void join(long millis) throws InterruptedException {
    if (isAlive()) {
      serverThread.join(millis);
    }
  }
Wait on the server-socket thread using {@link Thread#join(long)}

@param millis how long to wait
geode-tcp-server/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpServer.java