commit | 21ac624087082595b5b2d96a60e72a47ddac0b83 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Fri Aug 20 11:07:17 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Wed Sep 01 22:04:12 2021 +0800 |
tree | 6a738c727d17ccef315ffcd65a3aa7ce736785c5 | |
parent | a2f85fb635b9cfa54a0d1f9b7ec5bdb9ad531300 [diff] |
Fix the wrong condition statement in tokio select for doh_handler and correct some return code in doh_query 1. Currently, the first branch of tokio select in doh_handler is not strict enough, which causes the first branch can never return PENDING state if no doh_conn is available. If that happen, tokio select! might end up comsuming all the budget and get stuck. To fix this problem, make the precondition stricter. 2. Correct some return code in doh_query, which is used to notify DnsResolver fallback to DoT or UDP. Test: manual test && atest Bug: 196717322 Change-Id: Ib1f38f2ab7c227780213325a859e19e17fd11d3c
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.