commit | 9b748ee32cc6118c5c24b49ff938a99554d8f599 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Jan 04 20:13:15 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Jan 04 20:15:00 2022 +0800 |
tree | 7b56904e57cdd4ea59a2cdbc011c6559722fc83a | |
parent | 229fedcb96f5ee24eb384823ae883502a718edef [diff] |
Skip res_doh_send() if there is no validated DoH servers Since res_doh_send() can take around 2 milliseconds, skip calling it when there is no DoH servers validated. Bug: 212364676 Test: ran "dnschk --attempts 1000 --randomname" w/o this change it takes 36 seconds w/ this change it takes 32 seconds Test: checked the log to ensure that "performing query over Https" is not printed when the DNS doesn't support DoH Change-Id: I1718534889b097eb89ba12a291da0fb19f13bbbd
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.