From dad653ca868d44ee61c6747dcec9e6e2e0bbbda9 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Mon, 5 Aug 2024 12:43:22 -0400 Subject: [PATCH] fix: higher default timeout for database download Depending on region and network conditions, 120s was not enough time for many clients, leading to some complaints. Raise the default timeout to five minutes. Signed-off-by: Will Murphy --- cmd/grype/cli/options/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/grype/cli/options/database.go b/cmd/grype/cli/options/database.go index 83faff302a7..4975dc7210d 100644 --- a/cmd/grype/cli/options/database.go +++ b/cmd/grype/cli/options/database.go @@ -30,7 +30,7 @@ var _ interface { const ( defaultMaxDBAge time.Duration = time.Hour * 24 * 5 defaultUpdateAvailableTimeout = time.Second * 30 - defaultUpdateDownloadTimeout = time.Second * 120 + defaultUpdateDownloadTimeout = time.Second * 300 ) func DefaultDatabase(id clio.Identification) Database {