commit | 153b3fe1a092283606718129c7dd526d3de59d27 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Dec 01 19:55:49 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Dec 03 21:02:04 2021 +0800 |
tree | d56aece7318cbca3fefdba78278b019fc4ce7f53 | |
parent | 5d2a10711b6194098a62a309e718117ec93238ca [diff] |
DoH: Increase the size of Network mpsc channel Increase the channel size so that the DoH client can queue more DNS requests before a DoH connection is established. Apart from that, since the size of the queue is increased, it can take more time to drain all the DNS requests out of the queue, especially when DoH connections can't be established. This change also add the check for expired DNS requests in Network object before send them to Connection object. Bug: 207301204 Test: cd packages/modules/DnsResolver && atest Change-Id: Icfcbc7d389621cbbac23b5880907c26f1ab2f57f
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.