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

Issue 2331923003: Allow LogDnsClient queries to be rate-limited (Closed)

Created:
4 years, 3 months ago by Rob Percival
Modified:
4 years, 2 months ago
CC:
Eran Messeri, certificate-transparency-chrome_googlegroups.com, chromium-reviews, eroman, rsleevi+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow LogDnsClient queries to be rate-limited A maximum number of concurrent queries can be specified. By default, there is no limit. BUG=624894 Committed: https://crrev.com/2a9f5c09189a26b2f6140c02946bbd44ca9876f7 Cr-Commit-Position: refs/heads/master@{#424541}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Set LogDnsClient max_concurrent_queries via constructor param #

Total comments: 19

Patch Set 3 : Addresses some of Ryan Sleevi's comments #

Patch Set 4 : Use Eq matcher with EXPECT_THAT #

Total comments: 20

Patch Set 5 : Addresses some of Ryan Sleevi's comments #

Patch Set 6 : Fix uint64_t format specifiers on 32-bit builds #

Patch Set 7 : Change "EXPECT_TRUE(foo) + if(foo)" to "ASSERT_TRUE(foo)" #

Patch Set 8 : Fix size_t format specifiers on 32-bit builds #

Patch Set 9 : Rebase #

Patch Set 10 : Improves tests #

Total comments: 2

Patch Set 11 : Removes unnecessary error messages #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Total comments: 6

Patch Set 14 : Addresses last of Ryan's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -110 lines) Patch
M components/certificate_transparency/log_dns_client.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -1 line 0 comments Download
M components/certificate_transparency/log_dns_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +36 lines, -11 lines 0 comments Download
M components/certificate_transparency/log_dns_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +444 lines, -98 lines 0 comments Download

Messages

Total messages: 93 (68 generated)
Eran Messeri
https://codereview.chromium.org/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc#newcode117 components/certificate_transparency/log_dns_client.cc:117: base::ThreadTaskRunnerHandle::Get()->PostTask( Rather than invoke the callback, I suggest returning ...
4 years, 3 months ago (2016-09-12 13:26:48 UTC) #6
Rob Percival
https://chromiumcodereview-hr.appspot.com/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://chromiumcodereview-hr.appspot.com/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc#newcode117 components/certificate_transparency/log_dns_client.cc:117: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/09/12 13:26:48, Eran Messeri wrote: > Rather ...
4 years, 3 months ago (2016-09-12 17:26:24 UTC) #7
Ryan Sleevi
+eroman and mmenke, because I'm potentially relitigating something from a past CL that Eric approved ...
4 years, 3 months ago (2016-09-12 18:12:44 UTC) #13
Rob Percival
https://chromiumcodereview-hr.appspot.com/2331923003/diff/20001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://chromiumcodereview-hr.appspot.com/2331923003/diff/20001/components/certificate_transparency/log_dns_client.cc#newcode120 components/certificate_transparency/log_dns_client.cc:120: base::Bind(callback, net::Error::ERR_TEMPORARILY_THROTTLED, 0)); On 2016/09/12 18:12:43, Ryan Sleevi (slow) ...
4 years, 3 months ago (2016-09-13 14:06:32 UTC) #20
mmenke
https://chromiumcodereview-hr.appspot.com/2331923003/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc File components/certificate_transparency/log_dns_client_unittest.cc (right): https://chromiumcodereview-hr.appspot.com/2331923003/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc#newcode186 components/certificate_transparency/log_dns_client_unittest.cc:186: EXPECT_THAT(callback.leaf_index(), 123456); On 2016/09/13 14:06:31, Rob Percival wrote: > ...
4 years, 3 months ago (2016-09-13 14:31:29 UTC) #22
Rob Percival
On 2016/09/13 14:31:29, mmenke wrote: > https://chromiumcodereview-hr.appspot.com/2331923003/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc > File components/certificate_transparency/log_dns_client_unittest.cc (right): > > https://chromiumcodereview-hr.appspot.com/2331923003/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc#newcode186 > ...
4 years, 3 months ago (2016-09-14 19:04:55 UTC) #25
mmenke
On 2016/09/14 19:04:55, Rob Percival wrote: > On 2016/09/13 14:31:29, mmenke wrote: > > > ...
4 years, 3 months ago (2016-09-14 19:27:26 UTC) #26
mmenke
On 2016/09/14 19:27:26, mmenke wrote: > On 2016/09/14 19:04:55, Rob Percival wrote: > > On ...
4 years, 3 months ago (2016-09-14 19:27:52 UTC) #27
mmenke
Also, just from a C/C++ perspective... "Eq(blah)" doesn't make much sense. x.Eq(Blah) or "Eq(x, Blah)", ...
4 years, 3 months ago (2016-09-14 19:31:12 UTC) #28
Rob Percival
On 2016/09/14 19:27:26, mmenke wrote: > On 2016/09/14 19:04:55, Rob Percival wrote: > > On ...
4 years, 3 months ago (2016-09-14 19:43:36 UTC) #29
Eran Messeri
https://codereview.chromium.org/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc#newcode117 components/certificate_transparency/log_dns_client.cc:117: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/09/12 at 17:26:24, Rob Percival wrote: > ...
4 years, 3 months ago (2016-09-14 23:25:43 UTC) #34
Rob Percival
On 2016/09/14 23:25:43, Eran Messeri wrote: > https://codereview.chromium.org/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc > File components/certificate_transparency/log_dns_client.cc (right): > > https://codereview.chromium.org/2331923003/diff/1/components/certificate_transparency/log_dns_client.cc#newcode117 ...
4 years, 3 months ago (2016-09-15 07:31:25 UTC) #35
Ryan Sleevi
https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc#newcode137 components/certificate_transparency/log_dns_client.cc:137: qname << encoded_leaf_hash << ".hash." << domain_for_log << "."; ...
4 years, 3 months ago (2016-09-16 02:11:03 UTC) #36
Rob Percival
https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc#newcode137 components/certificate_transparency/log_dns_client.cc:137: qname << encoded_leaf_hash << ".hash." << domain_for_log << "."; ...
4 years, 3 months ago (2016-09-16 16:28:19 UTC) #37
Ryan Sleevi
https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc#newcode137 components/certificate_transparency/log_dns_client.cc:137: qname << encoded_leaf_hash << ".hash." << domain_for_log << "."; ...
4 years, 3 months ago (2016-09-17 01:51:53 UTC) #38
Rob Percival
https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client.cc#newcode137 components/certificate_transparency/log_dns_client.cc:137: qname << encoded_leaf_hash << ".hash." << domain_for_log << "."; ...
4 years, 3 months ago (2016-09-20 18:54:42 UTC) #39
Ryan Sleevi
https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client_unittest.cc File components/certificate_transparency/log_dns_client_unittest.cc (right): https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client_unittest.cc#newcode607 components/certificate_transparency/log_dns_client_unittest.cc:607: } On 2016/09/20 18:54:42, Rob Percival wrote: > https://codereview.chromium.org/2066553002/#ps180001 ...
4 years, 3 months ago (2016-09-22 04:37:07 UTC) #53
Rob Percival
PTAL https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client_unittest.cc File components/certificate_transparency/log_dns_client_unittest.cc (right): https://codereview.chromium.org/2331923003/diff/100001/components/certificate_transparency/log_dns_client_unittest.cc#newcode607 components/certificate_transparency/log_dns_client_unittest.cc:607: } On 2016/09/22 04:37:07, Ryan Sleevi (slow) wrote: ...
4 years, 3 months ago (2016-09-22 11:33:23 UTC) #54
Ryan Sleevi
My face is still melting from all the reviews, but this is still on my ...
4 years, 2 months ago (2016-10-03 23:57:29 UTC) #67
Rob Percival
https://codereview.chromium.org/2331923003/diff/240001/components/certificate_transparency/log_dns_client_unittest.cc File components/certificate_transparency/log_dns_client_unittest.cc (right): https://codereview.chromium.org/2331923003/diff/240001/components/certificate_transparency/log_dns_client_unittest.cc#newcode96 components/certificate_transparency/log_dns_client_unittest.cc:96: EXPECT_TRUE(!called_) << "Callback invoked more than once"; On 2016/10/03 ...
4 years, 2 months ago (2016-10-04 15:27:53 UTC) #68
Ryan Sleevi
lgtm https://codereview.chromium.org/2331923003/diff/320001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/320001/components/certificate_transparency/log_dns_client.cc#newcode8 components/certificate_transparency/log_dns_client.cc:8: #include "base/format_macros.h" AFAICT, it should be sufficient to ...
4 years, 2 months ago (2016-10-07 15:46:23 UTC) #82
Rob Percival
https://codereview.chromium.org/2331923003/diff/320001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2331923003/diff/320001/components/certificate_transparency/log_dns_client.cc#newcode8 components/certificate_transparency/log_dns_client.cc:8: #include "base/format_macros.h" On 2016/10/07 15:46:23, Ryan Sleevi (slow) wrote: ...
4 years, 2 months ago (2016-10-11 18:02:56 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2331923003/340001
4 years, 2 months ago (2016-10-11 20:51:09 UTC) #90
commit-bot: I haz the power
Committed patchset #14 (id:340001)
4 years, 2 months ago (2016-10-11 20:57:04 UTC) #91
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 21:00:45 UTC) #93
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/2a9f5c09189a26b2f6140c02946bbd44ca9876f7
Cr-Commit-Position: refs/heads/master@{#424541}

Powered by Google App Engine
This is Rietveld 408576698