summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/utilcmds.py
diff options
context:
space:
mode:
authorDhairya Nagodra <dnagodra@cisco.com>2023-12-11 02:04:59 -0800
committerSteve Sakoman <steve@sakoman.com>2024-01-04 04:09:43 -1000
commita8768bdaf8e7b8d7957d7d428a3c03da753a5bb5 (patch)
treea1da34f58b4c06dbdae78a43a41fec356444dbfd /scripts/lib/devtool/utilcmds.py
parentdc31801ddb59add90ae01feff44044cb8f274d4b (diff)
downloadpoky-a8768bdaf8e7b8d7957d7d428a3c03da753a5bb5.tar.gz
cve-update-nvd2-native: faster requests with API keys
As per NVD, the public rate limit is 5 requests in 30s (6s delay). Using an API key increases the limit to 50 requests in 30s (0.6s delay). However, NVD still recommends sleeping for several seconds so that the other legitimate requests are serviced without denial or interruption. Keeping the default sleep at 6 seconds and 2 seconds with an API key. For failures, the wait time is unchanged (6 seconds). Reference: https://nvd.nist.gov/developers/start-here#RateLimits (From OE-Core rev: 6998b433a0b0609bbcfb99e7c8e96e5d6b534921) Signed-off-by: Dhairya Nagodra <dnagodra@cisco.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 5c32e2941d1dc3d04a799a1b7cbd275c1ccc9e79) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/devtool/utilcmds.py')
0 files changed, 0 insertions, 0 deletions