// Then wait for a certain number of seconds to connect to the proxy// to make sure that we can flush the connection queue.
start_time = time.time()
FINAL_WAIT_SECONDS = 5.0
PROXY_CONNECTION_POLL_INTERVAL_SECONDS = 0.1
FLUSH_QUEUE_SECONDS = 0.1while True:
elapsed_time = time.time() - start_timeifelapsed_time > FINAL_WAIT_SECONDS:
LOGGER.debug(f"Waited {FINAL_WAIT_SECONDS} for proxy ""to connect. Exiting.")
break