From 03dc98b4e23b72f67e07bbea42aa6f3f99c339c8 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 1 Sep 2017 17:57:34 +0200 Subject: [PATCH] Add timeout of 10 seconds to check.php request. --- tcllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcllib.py b/tcllib.py index fea4243..2d95624 100644 --- a/tcllib.py +++ b/tcllib.py @@ -75,7 +75,7 @@ class FotaCheck: params["chnl"] = self.chnl #params["osvs"] = self.osvs - req = self.sess.get(url, params=params) + req = self.sess.get(url, params=params, timeout=10) if req.status_code == 200: return req.text else: