]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cve-update-nvd2-native: increase retry count
authorPeter Marko <peter.marko@siemens.com>
Tue, 11 Jul 2023 06:36:29 +0000 (08:36 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Jul 2023 06:55:16 +0000 (07:55 +0100)
Current 503 errors seem to last several seconds.
In most cases there are two errors and third request succeeds.
However sometimes the outage takes more than time needed
for two retries and third one also fails.

Extend retry count from 3 to 5 to improve the probablity
that the fetcher succeeds.

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

index e2584d21b3d32f543d63fcc73824b5f97256a165..8e5b83d7f166a25b455a3c30a163e7110bdfbae4 100644 (file)
@@ -129,7 +129,7 @@ def nvd_request_next(url, api_key, args):
 
     full_request = url + '?' + data
 
-    for attempt in range(3):
+    for attempt in range(5):
         try:
             r = urllib.request.urlopen(full_request)