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

Issue 7011044: Add a command line option to turn off retry attempts to resolve host (Closed)

Created:
9 years, 7 months ago by ramant (doing other things)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add a command line option ("host-resolver-retry-attempts") to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85852

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 6

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -58 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -1 line 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -1 line 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/base/host_resolver.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +20 lines, -20 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +20 lines, -15 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +28 lines, -18 lines 0 comments Download
M net/base/mock_host_resolver.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/transport_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/test/test_server.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M net/tools/fetch/fetch_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ramant (doing other things)
Hi Eric and Jim, Added the command line option to turn off retry attempts for ...
9 years, 7 months ago (2011-05-13 19:50:55 UTC) #1
eroman
Can you avoid using globals for this? See for instance how the --host-resolver-parallelism flag is ...
9 years, 7 months ago (2011-05-13 23:31:50 UTC) #2
jar (doing other things)
On 2011/05/13 23:31:50, eroman wrote: > Can you avoid using globals for this? > > ...
9 years, 7 months ago (2011-05-14 03:11:58 UTC) #3
ramant (doing other things)
Hi Eric and Jim, Made the changes Eric had suggested. Passed the number of retries ...
9 years, 7 months ago (2011-05-16 17:57:01 UTC) #4
eroman
lgtm after considering comment: http://codereview.chromium.org/7011044/diff/8028/net/base/host_resolver_impl.cc#newcode552 http://codereview.chromium.org/7011044/diff/8028/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/7011044/diff/8028/chrome/common/chrome_switches.cc#newcode605 chrome/common/chrome_switches.cc:605: // (not counting potential ...
9 years, 7 months ago (2011-05-16 23:26:08 UTC) #5
ramant (doing other things)
Hi Eric, Made all the changes you had suggested. Could you take a look at ...
9 years, 7 months ago (2011-05-17 18:46:25 UTC) #6
eroman
http://codereview.chromium.org/7011044/diff/16002/net/base/host_resolver_impl.h File net/base/host_resolver_impl.h (right): http://codereview.chromium.org/7011044/diff/16002/net/base/host_resolver_impl.h#newcode89 net/base/host_resolver_impl.h:89: // resolution. Pass HostResolver::kDefaultRetryAttempts to choose a default Note ...
9 years, 7 months ago (2011-05-17 22:53:26 UTC) #7
ramant (doing other things)
HostResolverImpl constructor sets the maximum retry attempts to 4 if callers pass kDefaultRetryAttempts. Thanks Eric, ...
9 years, 7 months ago (2011-05-17 23:27:24 UTC) #8
eroman
9 years, 7 months ago (2011-05-18 23:08:32 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698