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

Issue 5322015: Fixed a bug with URLFetcher where retrying the request would append the new r... (Closed)

Created:
10 years ago by sanjeevr
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fixed a bug with URLFetcher where retrying the request would append the new response data to the old one. BUG=None. TEST=Unit-tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67815

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
M chrome/common/net/url_fetcher.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/net/url_fetcher_unittest.cc View 3 chunks +51 lines, -0 lines 5 comments Download

Messages

Total messages: 5 (0 generated)
sanjeevr
10 years ago (2010-12-01 00:59:09 UTC) #1
eroman
lgtm http://codereview.chromium.org/5322015/diff/1/chrome/common/net/url_fetcher_unittest.cc File chrome/common/net/url_fetcher_unittest.cc (right): http://codereview.chromium.org/5322015/diff/1/chrome/common/net/url_fetcher_unittest.cc#newcode242 chrome/common/net/url_fetcher_unittest.cc:242: std::string data_; nit: looks like there is one ...
10 years ago (2010-12-01 01:34:40 UTC) #2
eroman
lgtm
10 years ago (2010-12-01 01:34:41 UTC) #3
sanjeevr
http://codereview.chromium.org/5322015/diff/1/chrome/common/net/url_fetcher_unittest.cc File chrome/common/net/url_fetcher_unittest.cc (right): http://codereview.chromium.org/5322015/diff/1/chrome/common/net/url_fetcher_unittest.cc#newcode242 chrome/common/net/url_fetcher_unittest.cc:242: std::string data_; On 2010/12/01 01:34:40, eroman wrote: > nit: ...
10 years ago (2010-12-01 02:10:00 UTC) #4
eroman
10 years ago (2010-12-01 02:13:38 UTC) #5
http://codereview.chromium.org/5322015/diff/1/chrome/common/net/url_fetcher_u...
File chrome/common/net/url_fetcher_unittest.cc (right):

http://codereview.chromium.org/5322015/diff/1/chrome/common/net/url_fetcher_u...
chrome/common/net/url_fetcher_unittest.cc:477: fetcher_->Start();
On 2010/12/01 02:10:01, sanjeevr wrote:
> On 2010/12/01 01:34:40, eroman wrote:
> > It is not clear from the docs whether calling Start() multiple times is
valid.
> I
> > understand why you do this for the unit-test, but would be better if you
could
> > cause it to internally retry instead.
> > 
> > I am OK with leaving as is if you can't find a clean way to do that though.
> 
> Other tests also use fetcher_->Start to retry. Besides, I use this in
production
> code too. Perhaps update the docs? Do you think I should change my production
> code to not use Start() to retry?

ah ok, didn't realize it was a common pattern.

Powered by Google App Engine
This is Rietveld 408576698