From f30cc3a1ae96cc6e934da755eecec1ee4382bc56 Mon Sep 17 00:00:00 2001 From: Edwin Hermans Date: Tue, 28 May 2024 11:00:23 -0400 Subject: [PATCH] Make timeout globally configurable --- tyora/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tyora/session.py b/tyora/session.py index c31aa8f..9d29bc7 100644 --- a/tyora/session.py +++ b/tyora/session.py @@ -10,7 +10,7 @@ from .utils import find_link, parse_form -HTTP_TIMEOUT = 10 +HTTP_TIMEOUT = int(os.getenv("HTTP_TIMEOUT", 10)) logger = logging.getLogger(__name__) try: