From aaf03d288fee37f01b75fedd5e74814694cd8b87 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 21 Nov 2024 10:34:17 +0000 Subject: [PATCH] mirror_check: Increase connection timeout The fastly test showed that the DNS was slow to resolve for some people, sometimes exceeding 5 seconds. Double the timeout value for the connection to work around that issue. More info at https://github.com/linuxmint/linuxmint/issues/658. --- usr/lib/linuxmint/mintUpdate/mintUpdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintUpdate/mintUpdate.py b/usr/lib/linuxmint/mintUpdate/mintUpdate.py index 4827e399..479c364e 100755 --- a/usr/lib/linuxmint/mintUpdate/mintUpdate.py +++ b/usr/lib/linuxmint/mintUpdate/mintUpdate.py @@ -2019,7 +2019,7 @@ def get_url_last_modified(self, url): try: c = pycurl.Curl() c.setopt(pycurl.URL, url) - c.setopt(pycurl.CONNECTTIMEOUT, 5) + c.setopt(pycurl.CONNECTTIMEOUT, 10) c.setopt(pycurl.TIMEOUT, 30) c.setopt(pycurl.FOLLOWLOCATION, 1) c.setopt(pycurl.NOBODY, 1)