commit | f71a722729602c696926f72e542366eada88defa | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Wed Mar 17 14:27:28 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Thu Apr 08 13:16:50 2021 +0000 |
tree | 9f073ad4b50a2d59617ba617328c26f319c50391 | |
parent | 01dfea04418b9651bf10c5c05acf583beb6049e7 [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: I5bcc701178358bc442bd8c2af5df03399d7a8137 Merged-In: I616933251aec49c60c850198c0594861009c2bb8 Ignore-AOSP-First: This CL is merged into aosp but wrongly skipped in internal git. So put it back.
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.