Skip to content

Commit

Permalink
mirror_check: Increase connection timeout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clefebvre committed Nov 21, 2024
1 parent 9ac4fee commit aaf03d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/lib/linuxmint/mintUpdate/mintUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aaf03d2

Please sign in to comment.