From bb32135af2da8dab2ddd803b7f34cbe0e86fb3a9 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Mon, 6 Jan 2025 01:32:38 +0100 Subject: [PATCH] Add 10 seconds timeout for curl --- facefusion/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facefusion/download.py b/facefusion/download.py index 9d63551..85f576e 100644 --- a/facefusion/download.py +++ b/facefusion/download.py @@ -15,7 +15,7 @@ from facefusion.typing import DownloadProvider, DownloadSet def open_curl(args : List[str]) -> subprocess.Popen[bytes]: - commands = [ shutil.which('curl'), '--silent', '--insecure', '--location' ] + commands = [ shutil.which('curl'), '--silent', '--insecure', '--location', '--connect-timeout', '10' ] commands.extend(args) return subprocess.Popen(commands, stdin = subprocess.PIPE, stdout = subprocess.PIPE)