Currently gvm makes three attempts at retrying a failed download, but it doesn't wait in between.
This commit adds rudimentary wait time between download attempts. It also increases the number
of retries to 5.
In a future refactoring we could use go-retryablehttp^1 (we'd still need to guard for errors with io.Copy) but keeping the
improvement short for now, hoping to reduce download related CI failures.
Currently
gvm
makes three attempts at retrying a failed download, but it doesn't wait in between.This commit adds rudimentary wait time between download attempts. It also increases the number of retries to 5.
In a future refactoring we could use
go-retryablehttp
^1 (we'd still need to guard for errors withio.Copy
) but keeping the improvement short for now, hoping to reduce download related CI failures.