]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Dec 2023 11:33:36 +0000 (11:33 +0000)
commit7101d654635b707e56b0dbae8c2146b312d211ea
tree7fe5b7883e47e877e18b93acc43cd4d4768151aa
parent5c32e2941d1dc3d04a799a1b7cbd275c1ccc9e79
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>
meta/recipes-core/meta/cve-update-nvd2-native.bb