Increase connection pool limit to accommodate Byte-Range dls

This commit is contained in:
rlaphoenix 2023-02-24 19:46:26 +00:00
parent ad82eab712
commit 4f1cff681c
1 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,11 @@ class Service(metaclass=ABCMeta):
total=15,
backoff_factor=0.2,
status_forcelist=[429, 500, 502, 503, 504]
)
),
# 16 connections is used for byte-ranged downloads
# double it to allow for 16 non-related connections
pool_maxsize=16 * 2,
pool_block=True
))
session.mount("http://", session.adapters["https://"])
return session