Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Issue 2568953004: common/lhttp: only retry transient errors (Closed)

Created:
4 years ago by djd-OOO-Apr2017
Modified:
4 years ago
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

common/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
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -1 line) Patch
M common/lhttp/client.go View 1 chunk +4 lines, -1 line 1 comment Download
M common/lhttp/client_test.go View 1 chunk +58 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 11 (6 generated)
djd-OOO-Apr2017
4 years ago (2016-12-13 02:19:46 UTC) #2
M-A Ruel
lgtm, thanks!
4 years ago (2016-12-13 02:25:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2568953004/1
4 years ago (2016-12-13 02:27:40 UTC) #6
dsansome-google
lgtm Thanks for fixing this! https://codereview.chromium.org/2568953004/diff/1/common/lhttp/client.go File common/lhttp/client.go (right): https://codereview.chromium.org/2568953004/diff/1/common/lhttp/client.go#newcode43 common/lhttp/client.go:43: // If rFn is ...
4 years ago (2016-12-13 02:36:14 UTC) #8
commit-bot: I haz the power
4 years ago (2016-12-13 02:39:07 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://github.com/luci/luci-go/commit/246b0478f1c7a18983c7f0a6dc721a8e0a9dabf1

Powered by Google App Engine
This is Rietveld 408576698