Bases: exceptions.Exception
Bases: requests.adapters.HTTPAdapter
CustomHTTPAdapter
This HTTPAdapter doesn’t trigger some urllib3 issues. urllib3 doesn’t put back connection to the pool when some errors occurs like a simple ECONNREFUSED.
This HTTPAdapter workaround this by enforcing preloading of the response. When enabled, urllib3 releases the connection to the pool immediately after its usage, and doesn’t trigger the issue.
By enforcing preloading, this break some requests features (like stream) that we didn’t use into our GnocchiClient
We could remove this when requests 2.8.0 will be released
Bases: exceptions.Exception