From 24e3f0912b9de4dc0a6a4e487764550daaf86153 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Wed, 1 May 2024 21:29:48 -0700 Subject: [PATCH] umu_util: don't timeout when setting up runtime - For now, remove the timeouts and let the files continue to download instead of using magic numbers --- umu/umu_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umu/umu_util.py b/umu/umu_util.py index a9795bc6..20ec294d 100644 --- a/umu/umu_util.py +++ b/umu/umu_util.py @@ -60,7 +60,7 @@ def setup_runtime(json: dict[str, Any]) -> None: # noqa: D103 # Get the digest for the runtime archive with ( urlopen( # noqa: S310 - f"{base_url}/SHA256SUMS", timeout=30, context=SSL_DEFAULT_CONTEXT + f"{base_url}/SHA256SUMS", context=SSL_DEFAULT_CONTEXT ) as resp, ): if resp.status != 200: @@ -75,7 +75,7 @@ def setup_runtime(json: dict[str, Any]) -> None: # noqa: D103 log.console(f"Downloading {codename} {runtime_platform_value}, please wait ...") with ( urlopen( # noqa: S310 - f"{base_url}/{archive}", timeout=300, context=SSL_DEFAULT_CONTEXT + f"{base_url}/{archive}", context=SSL_DEFAULT_CONTEXT ) as resp, ): data: bytes = b""