commit | 5d50b4983a114775485a059997604bb9ab97e68e | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu Jan 06 21:13:06 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Jan 11 01:50:38 2022 +0000 |
tree | a2e6eb87c0bcfb3fbb37a755b3cecb2a4d99a57c | |
parent | 42a735327fcf9773e25dca0e4ab86de02cb7eb00 [diff] |
DoH: Reduce DOH_THREADS from 2 to 1 Make the doh engine to run on one single thread. This change doesn't seem to improve DoH query latency, but it does save some CPU resource. See the bug for the test result. Bug: 213438941 Test: cd packages/modules/DnsResolver && atest Change-Id: I9c33e10d9269ba14c9ce708d0bc4b3761f908dea
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.