]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-update-nvd2-native: increase the delay between subsequent request failures
authorDhairya Nagodra <dnagodra@cisco.com>
Mon, 11 Dec 2023 10:05:00 +0000 (02:05 -0800)
committerSteve Sakoman <steve@sakoman.com>
Thu, 4 Jan 2024 17:24:12 +0000 (07:24 -1000)
commit9e03b7a9879fd16e32f4eccb78b438f6fa9db74d
treede40e61ab7158982b9d996c2c32077afddf6fa6a
parenteb5ab00be33a503205401541e88c32ba9da1d75c
cve-update-nvd2-native: increase the delay between subsequent request failures

Sometimes NVD servers are unstable and return too many errors.
There is an option to have higher fetch attempts to increase the chances
of successfully fetching the CVE data.

Additionally, it also makes sense to progressively increase the delay
after a failed request to an already unstable or busy server.
The increase in delay is reset after every successful request and
the maximum delay is limited to 30 seconds.

Also, the logs are improved to give more clarity.

Signed-off-by: Dhairya Nagodra <dnagodra@cisco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 7101d654635b707e56b0dbae8c2146b312d211ea)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/meta/cve-update-nvd2-native.bb