mirror of
https://cdm-project.com/Download-Tools/devine.git
synced 2025-04-30 06:24:30 +02: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 = 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…
x
Reference in New Issue
Block a user