Skip to content

Commit aaf03d2

Browse files
committedNov 21, 2024
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 linuxmint/linuxmint#658.
1 parent 9ac4fee commit aaf03d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎usr/lib/linuxmint/mintUpdate/mintUpdate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ def get_url_last_modified(self, url):
20192019
try:
20202020
c = pycurl.Curl()
20212021
c.setopt(pycurl.URL, url)
2022-
c.setopt(pycurl.CONNECTTIMEOUT, 5)
2022+
c.setopt(pycurl.CONNECTTIMEOUT, 10)
20232023
c.setopt(pycurl.TIMEOUT, 30)
20242024
c.setopt(pycurl.FOLLOWLOCATION, 1)
20252025
c.setopt(pycurl.NOBODY, 1)

0 commit comments

Comments
 (0)