summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-20 21:26:03 +0000
committerSteve Sakoman <steve@sakoman.com>2024-12-06 05:50:24 -0800
commitdbb243bf0bc8ef394640dcfcbbef3397b2617c8f (patch)
tree8e92a4edd2571e2cac8fe59a11f9cd33d116fa60 /bitbake
parentd77302b2fe94db6c132310771b7b97c7b534edec (diff)
downloadpoky-dbb243bf0bc8ef394640dcfcbbef3397b2617c8f.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: c7f282cd27edfd78830b61db586ed669808893a5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake')
-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 2e92117634..5bb3b2f361 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -87,7 +87,7 @@ class Wget(FetchMethod):
87 if not ud.localfile: 87 if not ud.localfile:
88 ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) 88 ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."))
89 89
90 self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30" 90 self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 100"
91 91
92 if ud.type == 'ftp' or ud.type == 'ftps': 92 if ud.type == 'ftp' or ud.type == 'ftps':
93 self.basecmd += " --passive-ftp" 93 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: