forked from DRMTalks/devine
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 = Session()
|
||||||
session.mount("https://", HTTPAdapter(
|
session.mount("https://", HTTPAdapter(
|
||||||
pool_connections=max_workers,
|
pool_connections=max_workers,
|
||||||
pool_maxsize=max_workers
|
pool_maxsize=max_workers,
|
||||||
|
pool_block=True
|
||||||
))
|
))
|
||||||
session.mount("http://", session.adapters["https://"])
|
session.mount("http://", session.adapters["https://"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue