]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-update-db-native: add timeout to urlopen() calls
authorFrank de Brabander <debrabander@gmail.com>
Tue, 18 Oct 2022 16:37:51 +0000 (18:37 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 4 Nov 2022 17:52:01 +0000 (07:52 -1000)
commitf51a6742bcae3a151a326d17cd44935815eb78c7
treeba975e355efe5b2ff6e65c8bfe3cd8c3564c137e
parentac4476e6594417b14bfb05a110009ef245f419b0
cve-update-db-native: add timeout to urlopen() calls

The urlopen() call can block indefinitely under some circumstances.
This can result in the bitbake process to run endlessly because of
the 'do_fetch' task of cve-update-bb-native to remain active.

This adds a default timeout of 60 seconds to avoid this hang, while
being large enough to minimize the risk of unwanted timeouts.

Signed-off-by: Frank de Brabander <debrabander@gmail.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e5f6652854f544106b40d860de2946954de642f3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/meta/cve-update-db-native.bb