code: private boolean accept(SocketBar socket)
    {
      PortTcp port = port();
      
      try {
        while (! port().isClosed()) {
          // Thread.interrupted();
  
          if (_serverSocket.accept(socket)) {
            if (port.isClosed()) {
              socket.close();
              return false;
            }
            else if (isThrottle()) {
              socket.close();
            }
            else {
              return true;
            }
          }
        }
      } catch (Throwable e) {
        if (port.isActive() && log.isLoggable(Level.FINER)) {
          log.log(Level.FINER, e.toString(), e);
        }
      }
  
      return false;
    }
docs: Accepts a new connection.