import requests
s = requests.Session()
a = requests.adapters.HTTPAdapter(max_retries=3)
s.mount('http://', a)
In requests library, how can I avoid "HttpConnectionPool is full, discarding connection" warning?