commit | 0841e31bc0670612438b52bfd921799b5a4f987f | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Wed Mar 17 14:27:28 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Tue Mar 30 04:44:44 2021 +0000 |
tree | e6017733c7490da562981f786f493c5a73fa65cd | |
parent | e7c54de89352b560351528aea4bca69170a76f3c [diff] |
Using tokio to complete the rust DoH query implementation This CL is the complement based on aosp/1531539 by using tokio. Some implementations are took from aosp/1550834. This CL would only focus on rust part of DoH. Using tokio to re-write the event loop and I/O handling. Test: atest Bug: 155855709 Change-Id: I075f8c8211b8793534274b292cbc3af8a819418c Merged-In: I21945b25e3e4e04e6110030d45b82fa1acf6c409
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.