diff options
| author | Mike Yu <yumike@google.com> | 2021-12-20 18:57:08 +0800 |
|---|---|---|
| committer | Mike Yu <yumike@google.com> | 2021-12-20 19:40:35 +0800 |
| commit | 229fedcb96f5ee24eb384823ae883502a718edef (patch) | |
| tree | 451f6f2fe4244c64386a45d8a105ddf72104ba62 /ResolverController.cpp | |
| parent | 03a274f82b3bf81f8dd87211af18f69c67d9f915 (diff) | |
Make DohFrontend::clearQueries() synchronous
Sending a DNS query right after DohFrontend::clearQueries() is
commonly seen in PrivateDnsDohTest. However, it has a race issue
because frontend_stats_clear_queries() is asynchronous. Some
PrivateDnsDohTest tests are flaky due to that.
This change ensures that DohFrontend::clearQueries() returns after
the query count is reset.
Fix: 211362650
Test: Ran PrivateDnsDohTest.PreferIpv6 1000 times
Change-Id: I537c44b2015075130100e19279070c3e1ff698d3
Diffstat (limited to 'ResolverController.cpp')
0 files changed, 0 insertions, 0 deletions
