summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-20 21:26:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-21 12:16:28 +0000
commitb4bd930fb202d52b328eff6c46f2dd94b3ba46ff (patch)
tree17ae88d4dd2bf9acba75801927f67a35af262e05 /bitbake/lib
parentf95a645dd4fbb98afe6f10cd28d5908bbe845fbc (diff)
downloadpoky-b4bd930fb202d52b328eff6c46f2dd94b3ba46ff.tar.gz
bitbake: fetch/wget: Increase timeout to 100s from 30s
Testing shows the worst case CDN response time can be up to 100s. The wget fetcher is used for accessing sstate from the CDN so increase our timeouts there to match our worst case repsonse times. (Bitbake rev: 7aca591529e115bc277f93811d8c586630acc8c3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 7856d10fa4..773d41ca81 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -82,7 +82,7 @@ class Wget(FetchMethod):
82 if not ud.localfile: 82 if not ud.localfile:
83 ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) 83 ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."))
84 84
85 self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30" 85 self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 100"
86 86
87 if ud.type == 'ftp' or ud.type == 'ftps': 87 if ud.type == 'ftp' or ud.type == 'ftps':
88 self.basecmd += " --passive-ftp" 88 self.basecmd += " --passive-ftp"
@@ -371,7 +371,7 @@ class Wget(FetchMethod):
371 except (FileNotFoundError, netrc.NetrcParseError): 371 except (FileNotFoundError, netrc.NetrcParseError):
372 pass 372 pass
373 373
374 with opener.open(r, timeout=30) as response: 374 with opener.open(r, timeout=100) as response:
375 pass 375 pass
376 except (urllib.error.URLError, ConnectionResetError, TimeoutError) as e: 376 except (urllib.error.URLError, ConnectionResetError, TimeoutError) as e:
377 if try_again: 377 if try_again: