summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2023-07-11 08:36:29 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-13 07:55:19 +0100
commit5fd239a233c432a7356d8e94cc37c953e0539364 (patch)
treeecbf86c5e2cc4441517c964dc0c2c2d7647542b5 /meta/recipes-core
parent12373c8c4765fe2f1f98d2516ab42454a869e742 (diff)
downloadpoky-5fd239a233c432a7356d8e94cc37c953e0539364.tar.gz
cve-update-nvd2-native: increase retry count
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. (From OE-Core rev: f4d118af2360cff7f234102fd5e4b65a6f4146a6) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/meta/cve-update-nvd2-native.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index e2584d21b3..8e5b83d7f1 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -129,7 +129,7 @@ def nvd_request_next(url, api_key, args):
129 129
130 full_request = url + '?' + data 130 full_request = url + '?' + data
131 131
132 for attempt in range(3): 132 for attempt in range(5):
133 try: 133 try:
134 r = urllib.request.urlopen(full_request) 134 r = urllib.request.urlopen(full_request)
135 135