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

Issue 2833021: Add an additional per-request DNS cache when executing FindProxyForURL() from... (Closed)

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

Description

Add an additional per-request DNS cache when executing FindProxyForURL() from a PAC script. This mini-cache is more aggressive in caching negative resolutions, to avoid performance problems with PAC scripts that do lots of serial DNS resolves. This is necessary now that we no longer globally cache DNS resolve failures to avoid performance regressions. BUG=46821 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50495

Patch Set 1 #

Patch Set 2 : fix some comments #

Patch Set 3 : '' #

Total comments: 11

Patch Set 4 : Address wtc's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -32 lines) Patch
M net/net.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings.h View 3 chunks +20 lines, -3 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings.cc View 1 2 3 4 chunks +46 lines, -8 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings_unittest.cc View 1 2 3 3 chunks +75 lines, -0 lines 0 comments Download
A net/proxy/proxy_resolver_request_context.h View 1 2 3 1 chunk +34 lines, -0 lines 1 comment Download
M net/proxy/proxy_resolver_v8.cc View 7 chunks +62 lines, -21 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
eroman
10 years, 6 months ago (2010-06-18 23:39:03 UTC) #1
wtc
LGTM. Good patch, and thank you for explaining it to me in person. http://codereview.chromium.org/2833021/diff/13001/14002 File ...
10 years, 6 months ago (2010-06-22 02:24:16 UTC) #2
eroman
Thanks for the review. http://codereview.chromium.org/2833021/diff/13001/14002 File net/proxy/proxy_resolver_js_bindings.cc (right): http://codereview.chromium.org/2833021/diff/13001/14002#newcode104 net/proxy/proxy_resolver_js_bindings.cc:104: int DnsResolveHelper(HostResolver::RequestInfo& info, On 2010/06/22 ...
10 years, 6 months ago (2010-06-22 03:16:04 UTC) #3
wtc
10 years, 6 months ago (2010-06-23 00:59:02 UTC) #4
LGTM.  Note the issue below.

http://codereview.chromium.org/2833021/diff/21001/7006
File net/proxy/proxy_resolver_request_context.h (right):

http://codereview.chromium.org/2833021/diff/21001/7006#newcode27
net/proxy/proxy_resolver_request_context.h:27: const GURL* query_url;
You forgot to remove the query_url, which I believe is unused.

Powered by Google App Engine
This is Rietveld 408576698