diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-20 21:26:03 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-12-02 06:23:20 -0800 |
| commit | 4ec499266e90c103f8b764c4c998eb0302e11fc1 (patch) | |
| tree | 280f3564a9fa96df97f8edbfd8339e9439f00dc6 /bitbake/lib/bb/fetch2/wget.py | |
| parent | 186ec250da9b8d41288001e0cf1447295fd97a9c (diff) | |
| download | poky-4ec499266e90c103f8b764c4c998eb0302e11fc1.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: 3f88b005244a0afb5d5c7260e54a94a453ec9b3e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 3849c8a5a1..47b15dc030 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
| @@ -88,7 +88,7 @@ class Wget(FetchMethod): | |||
| 88 | if not ud.localfile: | 88 | if not ud.localfile: |
| 89 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) | 89 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) |
| 90 | 90 | ||
| 91 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30" | 91 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 100" |
| 92 | 92 | ||
| 93 | if ud.type == 'ftp' or ud.type == 'ftps': | 93 | if ud.type == 'ftp' or ud.type == 'ftps': |
| 94 | self.basecmd += " --passive-ftp" | 94 | self.basecmd += " --passive-ftp" |
| @@ -365,7 +365,7 @@ class Wget(FetchMethod): | |||
| 365 | except (TypeError, ImportError, IOError, netrc.NetrcParseError): | 365 | except (TypeError, ImportError, IOError, netrc.NetrcParseError): |
| 366 | pass | 366 | pass |
| 367 | 367 | ||
| 368 | with opener.open(r, timeout=30) as response: | 368 | with opener.open(r, timeout=100) as response: |
| 369 | pass | 369 | pass |
| 370 | except urllib.error.URLError as e: | 370 | except urllib.error.URLError as e: |
| 371 | if try_again: | 371 | if try_again: |
