mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 10:13:03 +01:00
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: eceeba61b5da6d81f0677365f956464f1e5f1d84) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f4d118af2360cff7f234102fd5e4b65a6f4146a6) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
d6bf614ab4
commit
c5558d6e86
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user