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

Issue 11530018: DnsProbeJob: Differentiate network and DNS errors (Closed)

Created:
8 years ago by Deprecated (see juliatuttle)
Modified:
8 years ago
Reviewers:
szym, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

DnsProbeJob: Differentiate network and DNS errors DnsTransaction uses net_error to return errors returned by the remote DNS server as well as local errors encountered trying to talk to the server (like timeouts). Make note of which net errors mean that we received a response from the DNS server, and mark those as "failing" instead of "unreachable". Also, add another behavior to mock DNS transactions so we can test cases where the server is unreachable. BUG=156415 TEST=updated DnsProbeJobTest with a new case Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172780

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix nits #

Patch Set 3 : Rename IsDnsServerError to DidReceiveDnsResponse #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
M chrome/browser/net/dns_probe_job.cc View 1 2 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/net/dns_probe_job_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M net/dns/dns_test_util.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/dns/dns_test_util.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Deprecated (see juliatuttle)
PTAL, mmenke and szym.
8 years ago (2012-12-11 20:43:12 UTC) #1
szym
LGTM with some nits and comments. https://chromiumcodereview.appspot.com/11530018/diff/1/chrome/browser/net/dns_probe_job.cc File chrome/browser/net/dns_probe_job.cc (right): https://chromiumcodereview.appspot.com/11530018/diff/1/chrome/browser/net/dns_probe_job.cc#newcode35 chrome/browser/net/dns_probe_job.cc:35: static bool IsDnsServerError(int ...
8 years ago (2012-12-11 21:05:31 UTC) #2
Deprecated (see juliatuttle)
https://chromiumcodereview.appspot.com/11530018/diff/1/chrome/browser/net/dns_probe_job.cc File chrome/browser/net/dns_probe_job.cc (right): https://chromiumcodereview.appspot.com/11530018/diff/1/chrome/browser/net/dns_probe_job.cc#newcode35 chrome/browser/net/dns_probe_job.cc:35: static bool IsDnsServerError(int net_error) { On 2012/12/11 21:05:31, szym ...
8 years ago (2012-12-11 23:54:03 UTC) #3
szym
https://chromiumcodereview.appspot.com/11530018/diff/1/chrome/browser/net/dns_probe_job.cc File chrome/browser/net/dns_probe_job.cc (right): https://chromiumcodereview.appspot.com/11530018/diff/1/chrome/browser/net/dns_probe_job.cc#newcode35 chrome/browser/net/dns_probe_job.cc:35: static bool IsDnsServerError(int net_error) { On 2012/12/11 23:54:03, ttuttle ...
8 years ago (2012-12-12 01:13:14 UTC) #4
mmenke
LGTM https://codereview.chromium.org/11530018/diff/1/chrome/browser/net/dns_probe_job.cc File chrome/browser/net/dns_probe_job.cc (right): https://codereview.chromium.org/11530018/diff/1/chrome/browser/net/dns_probe_job.cc#newcode35 chrome/browser/net/dns_probe_job.cc:35: static bool IsDnsServerError(int net_error) { On 2012/12/12 01:13:14, ...
8 years ago (2012-12-12 17:01:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/11530018/8001
8 years ago (2012-12-12 23:10:54 UTC) #6
commit-bot: I haz the power
8 years ago (2012-12-13 02:22:01 UTC) #7
Message was sent while issue was closed.
Change committed as 172780

Powered by Google App Engine
This is Rietveld 408576698