diff options
author | Peter Marko <peter.marko@siemens.com> | 2023-07-11 08:36:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-13 07:55:19 +0100 |
commit | 12373c8c4765fe2f1f98d2516ab42454a869e742 (patch) | |
tree | f5399ecf9a6f5183918dd4e79d147f53809c6fb8 /scripts/lib/scriptutils.py | |
parent | 62a436ed98e6d1f992dc93c3452ea355c2b9b188 (diff) | |
download | poky-12373c8c4765fe2f1f98d2516ab42454a869e742.tar.gz |
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.
(From OE-Core rev: 88dad8f198baa80af5ab576498f4df6ed639d551)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions