Skip to content

Commit

Permalink
fix: higher default timeout for database download (#2033)
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 <[email protected]>
  • Loading branch information
willmurphyscode authored Aug 9, 2024
1 parent a0d1c95 commit f9b6365
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 f9b6365

Please sign in to comment.