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

fix connection pool exhaustion

parent c603f52f
Branches
Tags
No related merge requests found
...@@ -12,7 +12,7 @@ class Request(requests.Session): ...@@ -12,7 +12,7 @@ class Request(requests.Session):
super().__init__() super().__init__()
# allow using up to 16 connections # 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.mount(url, adapter)
self.headers.update({ self.headers.update({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment