summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-20 21:26:03 +0000
committerSteve Sakoman <steve@sakoman.com>2024-11-30 05:41:59 -0800
commitaeea31fea5d3ce3995b378cdd8f7ccce5e41ad52 (patch)
treed80c36d825d0c21d9f9d36867dcc51d0808ab27d
parent18612ba9d4287fbafa3a1127e839479b19d6c6fd (diff)
downloadpoky-aeea31fea5d3ce3995b378cdd8f7ccce5e41ad52.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: 70b09f62bc5622fa64bb668cdad610bd48bf7bb9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 e8b1292433..80f5ea46c7 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"
@@ -376,7 +376,7 @@ class Wget(FetchMethod):
376 except (FileNotFoundError, netrc.NetrcParseError): 376 except (FileNotFoundError, netrc.NetrcParseError):
377 pass 377 pass
378 378
379 with opener.open(r, timeout=30) as response: 379 with opener.open(r, timeout=100) as response:
380 pass 380 pass
381 except (urllib.error.URLError, ConnectionResetError, TimeoutError) as e: 381 except (urllib.error.URLError, ConnectionResetError, TimeoutError) as e:
382 if try_again: 382 if try_again: