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

Issue 3010009: AU: When server dies, don't retry forever (Closed)

Created:
10 years, 5 months ago by adlr
Modified:
10 years, 5 months ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/update_engine.git
Visibility:
Public.

Description

AU: When server dies, don't retry forever BUG=4871 TEST=attached unittests

Patch Set 1 #

Total comments: 16

Patch Set 2 : fixes for review, cleanup some LOG messages #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -18 lines) Patch
M http_fetcher_unittest.cc View 1 7 chunks +76 lines, -6 lines 0 comments Download
M libcurl_http_fetcher.h View 3 chunks +9 lines, -1 line 0 comments Download
M libcurl_http_fetcher.cc View 1 6 chunks +39 lines, -11 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
adlr
please review ASAP is this is blocking today's release. Thanks!
10 years, 5 months ago (2010-07-16 21:03:04 UTC) #1
petkov
I can't claim that I understand the whole context but the changes in libcurl_http_fetcher.cc look ...
10 years, 5 months ago (2010-07-16 21:20:01 UTC) #2
adlr
PTAL Thanks! http://codereview.chromium.org/3010009/diff/1/2 File http_fetcher_unittest.cc (right): http://codereview.chromium.org/3010009/diff/1/2#newcode146 http_fetcher_unittest.cc:146: HttpFetcherTestTypes; On 2010/07/16 21:20:01, petkov wrote: > ...
10 years, 5 months ago (2010-07-16 21:39:50 UTC) #3
petkov
10 years, 5 months ago (2010-07-16 21:47:45 UTC) #4
Consider the comments below. Still LGTM.

http://codereview.chromium.org/3010009/diff/6001/7002
File libcurl_http_fetcher.cc (right):

http://codereview.chromium.org/3010009/diff/6001/7002#newcode82
libcurl_http_fetcher.cc:82: bool LibcurlHttpFetcher::CurlPerformOnce() {
You could make this method void.

http://codereview.chromium.org/3010009/diff/6001/7002#newcode94
libcurl_http_fetcher.cc:94: if (curl_easy_getinfo(curl_handle_,
This is definitely better than the CHECK_EQ...

http://codereview.chromium.org/3010009/diff/6001/7002#newcode263
libcurl_http_fetcher.cc:263: // Since we will return false from this function,
which tells glib to
Actually, it seems we're returning TRUE from this function? Is this a bug? I
guess this is not part of this CL...

Powered by Google App Engine
This is Rietveld 408576698