import requests session = requests.Session() session.mount('http://', requests.adapters.HTTPAdapter(pool_connections=1, pool_maxsize=20, max_retries=3)) session.get("http://lr.cool")