You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't sleep for the full NextBackOff duration, but only for the remainder after subtracting the time Fetch took.
Pass a context to Fetch with a timeout equal to the nextbackoff duration.
Describe alternatives you've considered
Doing nothing. This still works but is IMO just a bit less accurate since long timeouts actually slow down the retries.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Exponential backoff takes longer to retry than expected.
Describe the solution you'd like
u-root/pkg/curl/schemes.go
Line 330 in 3ad1ae2
Don't sleep for the full NextBackOff duration, but only for the remainder after subtracting the time
Fetch
took.Pass a context to
Fetch
with a timeout equal to the nextbackoff duration.Describe alternatives you've considered
Doing nothing. This still works but is IMO just a bit less accurate since long timeouts actually slow down the retries.
The text was updated successfully, but these errors were encountered: