Skip to content

Commit

Permalink
Increase httputil.MaxRequestDuration to 30s (#257)
Browse files Browse the repository at this point in the history
The old value was too low to actually allow four retries.
  • Loading branch information
fweikert committed Jul 16, 2021
1 parent 787006c commit cf1205e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httputil/httputil.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
RetryClock = Clock(&realClock{})
MaxRetries = 4
// MaxRequestDuration defines the maximum amount of time that a request and its retries may take in total
MaxRequestDuration = time.Second * 10
MaxRequestDuration = time.Second * 30
retryHeaders = []string{"Retry-After", "X-RateLimit-Reset", "Rate-Limit-Reset"}
)

Expand Down

0 comments on commit cf1205e

Please sign in to comment.