]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cve-update-nvd2-native: retry all errors and sleep between retries
authorPeter Marko <peter.marko@siemens.com>
Tue, 11 Jul 2023 06:36:28 +0000 (08:36 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Jul 2023 06:55:16 +0000 (07:55 +0100)
commit88dad8f198baa80af5ab576498f4df6ed639d551
treee10bbeb980cd4ad1ffaa63c4416ab8eb327265f6
parentb4a4354fff41ffe61a1638b216e3a17e50b5c0e2
cve-update-nvd2-native: retry all errors and sleep between retries

Last couple days it is not possible to update NVD DB as servers
are returning lot of errors.
Mostly "HTTP Error 503: Service Unavailable" is observed but
sporadially also some others.

Retrying helps in most cases, so extend retries to all errors.

Additionally add sleep which is recommended by NVD between requests.
These retries are already implemented between successful requests,
but giving servers time between failed ones is important, too.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-nvd2-native.bb