fix(requests): Block until connection freed if too many connections

This commit is contained in:
rlaphoenix 2024-03-13 17:15:13 +00:00
parent 36b070f729
commit e7294c95d1
1 changed files with 2 additions and 1 deletions

View File

@ -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://"])