Skip to content
Snippets Groups Projects
Commit d79bb40d authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

fix connection pool exhaustion

parent c603f52f
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class Request(requests.Session):
super().__init__()
# allow using up to 16 connections
adapter = HTTPAdapter(pool_maxsize=MAX_THREADS)
adapter = HTTPAdapter(pool_maxsize=MAX_THREADS * 2) # should prevent connection pool exhaustion
self.mount(url, adapter)
self.headers.update({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment