Chromium Code Reviews
Descriptioncommon/lhttp: only retry transient errors
Currently, the NewRequest function defaults to retry.Default which always
retries on errors. Wrap this with retry.TransientOnly to make sure that
only transient errors responses (such as 5xx codes) are retried, and
hard failures are not retried (such as 403).
R=dsansome@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2568953004
Committed: https://github.com/luci/luci-go/commit/246b0478f1c7a18983c7f0a6dc721a8e0a9dabf1
Patch Set 1 #
Total comments: 1
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 11 (6 generated)
|
||||||||||||||||||||||||||||