File: 006.no_backoff.patch

package info (click to toggle)
python-pyfunceble 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,144 kB
  • sloc: python: 27,918; sh: 142; makefile: 48
file content (23 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sat, 10 Aug 2024 22:59:52 +0300
Subject: Remove backoff factor

This fixes terribly slow documentation build in a network-isolated
environment.
---
 PyFunceble/helpers/download.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PyFunceble/helpers/download.py b/PyFunceble/helpers/download.py
index 2cab77d..fe27e6e 100644
--- a/PyFunceble/helpers/download.py
+++ b/PyFunceble/helpers/download.py
@@ -124,7 +124,7 @@ class DownloadHelper:
                 self._session = requests.Session()
                 self._session.proxies = self.proxies
 
-                retries = Retry(total=self.retries, backoff_factor=3)
+                retries = Retry(total=self.retries)
                 adapter = HTTPAdapter(max_retries=retries)
 
                 self._session.mount("http://", adapter)