Skip to content

Commit

Permalink
fix: higher default timeout for database download
Browse files Browse the repository at this point in the history
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 <willmurphyscode@users.noreply.github.com>
  • Loading branch information
willmurphyscode committed Aug 6, 2024
1 parent 8642eba commit dad653c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/grype/cli/options/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dad653c

Please sign in to comment.