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

Issue 542029: Retry proxies which were cached as bad before giving up.... (Closed)

Created:
10 years, 11 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

Retry proxies which were cached as bad before giving up. This morphs ProxyList::RemoveBadProxies() into ProxyList::DeprioritizeBadProxies(), such that "bad proxies" are moved to the end of the fallback list rather than removed alltogether. BUG=31983 TEST=ProxyListTest.DeprioritizeBadProxies Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36054

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -26 lines) Patch
M net/base/net_error_list.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_transaction.cc View 1 1 chunk +3 lines, -8 lines 0 comments Download
M net/proxy/proxy_info.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M net/proxy/proxy_list.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M net/proxy/proxy_list.cc View 1 2 chunks +13 lines, -4 lines 0 comments Download
M net/proxy/proxy_list_unittest.cc View 1 3 chunks +65 lines, -4 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_service_unittest.cc View 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
eroman
10 years, 11 months ago (2010-01-12 09:35:22 UTC) #1
darin (slow to review)
nice, LGTM! http://codereview.chromium.org/542029/diff/1/7 File net/proxy/proxy_list.cc (right): http://codereview.chromium.org/542029/diff/1/7#newcode57 net/proxy/proxy_list.cc:57: proxies_ = good_proxies; minor optimization: use .swap ...
10 years, 11 months ago (2010-01-12 18:00:40 UTC) #2
wtc
LGTM. http://codereview.chromium.org/542029/diff/1/8 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/542029/diff/1/8#newcode616 net/http/http_network_transaction.cc:616: return ERR_EMPTY_PROXY_LIST; Nit: I still think this error ...
10 years, 11 months ago (2010-01-12 19:00:52 UTC) #3
eroman
10 years, 11 months ago (2010-01-12 20:10:00 UTC) #4
Thankyou for the reviews.

http://codereview.chromium.org/542029/diff/1/8
File net/http/http_network_transaction.cc (right):

http://codereview.chromium.org/542029/diff/1/8#newcode616
net/http/http_network_transaction.cc:616: return ERR_EMPTY_PROXY_LIST;
On 2010/01/12 19:00:52, wtc wrote:
> Nit: I still think this error code should be renamed to be
> more descriptive of the error condition ("we don't support
> any of the proxies in the returned list").  The name
> ERR_EMPTY_PROXY_LIST implies that the returned list is empty.

Renamed ERR_EMPTY_PROXY_LIST --> ERR_NO_SUPPORTED_PROXIES.

(Note I hadn't addressed your review comment earlier since I wanted to first get
rid of the other cases when it could be empty, i.e. when all the "bad" proxies
had been removed. Thankyou for your patience).

http://codereview.chromium.org/542029/diff/1/2
File net/proxy/proxy_info.h (right):

http://codereview.chromium.org/542029/diff/1/2#newcode74
net/proxy/proxy_info.h:74: proxy_list_.ReorderBadProxies(proxy_retry_info);
On 2010/01/12 19:00:52, wtc wrote:
> Nit: perhaps "Demote" or "Deprioritize" would be more
> self-documenting than "Reorder"?

Done. Renamed to DeprioritizeBadProxies().

http://codereview.chromium.org/542029/diff/1/7
File net/proxy/proxy_list.cc (right):

http://codereview.chromium.org/542029/diff/1/7#newcode57
net/proxy/proxy_list.cc:57: proxies_ = good_proxies;
On 2010/01/12 18:00:40, darin wrote:
> minor optimization: use .swap here.

Done.

Powered by Google App Engine
This is Rietveld 408576698