code: private static void resetHostList(Listener listener, Deque<HostAddress> loopAddresses) {
      //if all servers have been connected without result
      //add back all servers
      List<HostAddress> servers = new ArrayList<>();
      servers.addAll(listener.getUrlParser().getHostAddresses());
      Collections.shuffle(servers);
  
      loopAddresses.clear();
      loopAddresses.addAll(servers);
    }
docs: Reinitialize loopAddresses with all hosts : all servers in randomize order without connected
  host.
  
  @param listener      current listener
  @param loopAddresses the list to reinitialize