From 4f1cff681c4363a2de971066594294cb73bf23d4 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 24 Feb 2023 19:46:26 +0000 Subject: [PATCH] Increase connection pool limit to accommodate Byte-Range dls --- devine/core/service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devine/core/service.py b/devine/core/service.py index 1d9af8b..14e9327 100644 --- a/devine/core/service.py +++ b/devine/core/service.py @@ -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