jeremylong / Open-Vulnerability-Project

Java libraries for working with available vulnerability data sources (GitHub Security Advisories, NVD, EPSS, CISA Known Exploited Vulnerabilities, etc.)
Apache License 2.0
127 stars 40 forks source link

Add support of backOff for retries #181

Closed SVBryakin closed 4 months ago

SVBryakin commented 5 months ago

Add support for a backOff mechanism for retries. This can be useful in case of a poor internet connection or other errors.

jeremylong commented 4 months ago

We already have - see https://github.com/jeremylong/Open-Vulnerability-Project/blob/ff174b92582d84f1978a0f8a01d8555c7cbd1632/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/nvd/NvdApiRetryStrategy.java#L38-L40

jeremylong commented 4 months ago

More specifically https://github.com/jeremylong/Open-Vulnerability-Project/blob/ff174b92582d84f1978a0f8a01d8555c7cbd1632/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/nvd/NvdApiRetryStrategy.java#L100