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

Issue 6932013: Fix logic for handling reports of malformed bodies. To end up counting (Closed)

Created:
9 years, 7 months ago by Jói
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix logic for handling reports of malformed bodies. To end up counting one error, we need to count two when the malformed body is reported, against the one success reported based on the response code from what must have been a successful HTTP request. Updated a unit test that previously should have caught this but was making incorrect assumptions. BUG=81587 TEST=net_unittests Initially Committed: r84196 Reverted: r84200 Re-landed after fixing compile error. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84202

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix bug Sanjeev pointed out. #

Total comments: 2

Patch Set 3 : Add TODO per conversation with Sanjeev. #

Patch Set 4 : Merge to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -9 lines) Patch
M net/base/backoff_entry.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M net/url_request/url_request_throttler_entry.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Jói
Hi Sanjeev, This should fix the issue we discussed yesterday. Let me know if you ...
9 years, 7 months ago (2011-05-04 17:45:53 UTC) #1
sanjeevr
LGTM http://codereview.chromium.org/6932013/diff/1/net/base/backoff_entry.cc File net/base/backoff_entry.cc (right): http://codereview.chromium.org/6932013/diff/1/net/base/backoff_entry.cc#newcode37 net/base/backoff_entry.cc:37: exponential_backoff_release_time_ = CalculateReleaseTime(); I don't know the code ...
9 years, 7 months ago (2011-05-04 18:51:50 UTC) #2
sanjeevr
I have not filed a bug yet for this. Also, can this merged to M12 ...
9 years, 7 months ago (2011-05-04 18:52:30 UTC) #3
Jói
I think the merge to M12 should be pretty painless. Since we're going to merge, ...
9 years, 7 months ago (2011-05-04 19:53:24 UTC) #4
Jói
PTAL. http://codereview.chromium.org/6932013/diff/1/net/base/backoff_entry.cc File net/base/backoff_entry.cc (right): http://codereview.chromium.org/6932013/diff/1/net/base/backoff_entry.cc#newcode37 net/base/backoff_entry.cc:37: exponential_backoff_release_time_ = CalculateReleaseTime(); On 2011/05/04 18:51:50, sanjeevr wrote: ...
9 years, 7 months ago (2011-05-04 20:04:29 UTC) #5
sanjeevr
LGTM http://codereview.chromium.org/6932013/diff/9/net/base/backoff_entry.cc File net/base/backoff_entry.cc (right): http://codereview.chromium.org/6932013/diff/9/net/base/backoff_entry.cc#newcode38 net/base/backoff_entry.cc:38: failure_count_ = std::max(0, --failure_count_); I think we need ...
9 years, 7 months ago (2011-05-04 20:23:09 UTC) #6
Jói
I've added BUG=81587 to the change description and a TODO for your last comment. http://codereview.chromium.org/6932013/diff/9/net/base/backoff_entry.cc ...
9 years, 7 months ago (2011-05-04 20:30:14 UTC) #7
Jói
Adding Ricardo for net/OWNERS approval.
9 years, 7 months ago (2011-05-04 20:36:50 UTC) #8
rvargas (doing something else)
9 years, 7 months ago (2011-05-04 20:42:08 UTC) #9
RBSTMP LGTM

Powered by Google App Engine
This is Rietveld 408576698