mirror of
https://github.com/devine-dl/devine.git
synced 2025-04-29 17:49:44 +00:00
fix(requests): Block until connection freed if too many connections
This commit is contained in:
parent
36b070f729
commit
e7294c95d1
@ -218,7 +218,8 @@ def requests(
|
||||
session = Session()
|
||||
session.mount("https://", HTTPAdapter(
|
||||
pool_connections=max_workers,
|
||||
pool_maxsize=max_workers
|
||||
pool_maxsize=max_workers,
|
||||
pool_block=True
|
||||
))
|
||||
session.mount("http://", session.adapters["https://"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user