poky/bitbake/lib/bb/fetch2
Richard Purdie bc71ec0f1d bitbake: fetch/wget: Add timeout for checkstatus calls (30s)
We had an issue where a webserver serving sstate had filesystem issues so
would accept connections but effectively not do anything with them. This
causes bitbake to hang whilst processing things like sstate objects inside
the checkstatus() calls. It can be replicated by setting up a server like:

socat -u TCP4-LISTEN:NNN,fork OPEN:/dev/null

and pointing SSTATE_MIRRORS in OE at that address.

Adding a timeout to the checkstatus calls of 30s means that whilst the
system will pause, it will then continue and not hang entirely. Since there
isn't a large transfer here, 30s should be a reasonable response time after
which we should fall back to building things ourselves.

[YOCTO #13716]

(Bitbake rev: 92bb53adf47b95182e763a41cd6f4f920250e7b7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-11 11:04:25 +00:00
..
__init__.py bitbake: lib/bb/fetch2/__init__.py: drop _PYTHON_SYSCONFIGDATA_NAME unsetting 2021-02-11 17:49:22 +00:00
bzr.py bitbake: lib: remove unused imports 2020-01-19 13:31:05 +00:00
clearcase.py bitbake: lib: remove unused imports 2020-01-19 13:31:05 +00:00
cvs.py bitbake: fetch2/cvs: Fix CVS fetcher clean method 2020-05-27 10:46:33 +01:00
git.py bitbake: fetch/git: Handle github dropping git:// support 2021-11-03 11:31:37 +00:00
gitannex.py bitbake: lib: remove unused imports 2020-01-19 13:31:05 +00:00
gitsm.py bitbake: fetch2/gitsm: Make need_update() process submodules 2020-06-15 14:55:25 +01:00
hg.py bitbake: lib: remove unused imports 2020-01-19 13:31:05 +00:00
local.py bitbake: fetch2: Drop globbing supprt in file:// SRC_URIs 2020-08-26 09:05:38 +01:00
npm.py bitbake: fetch2/npm: refactor the npm fetcher 2020-01-27 16:48:10 +00:00
npmsw.py bitbake: fetch2: add the npmsw fetcher 2020-01-27 16:48:10 +00:00
osc.py bitbake: lib: fix most undefined code picked up by pylint 2020-08-25 18:14:53 +01:00
perforce.py bitbake: perforce: add local path handling SRC_URI options 2020-06-25 10:24:02 +01:00
repo.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
s3.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
sftp.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
ssh.py bitbake: lib: fix most undefined code picked up by pylint 2020-08-25 18:14:53 +01:00
svn.py bitbake: fetch2/svn: Avoid UnboundLocalError exception 2020-02-20 11:56:37 +00:00
wget.py bitbake: fetch/wget: Add timeout for checkstatus calls (30s) 2021-11-11 11:04:25 +00:00