Skip to content
Commit 75d2c50a authored by Peter Marko's avatar Peter Marko Committed by Steve Sakoman
Browse files

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: default avatarPeter Marko <peter.marko@siemens.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 88dad8f1)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent babf2039
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment