commit | ea545bf0d562a99302948b95819b7a806b23a559 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Fri Aug 27 12:17:17 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Fri Sep 10 17:04:52 2021 +0800 |
tree | dd83f25da41e63ff9d2cd8b8b2efe614eaa92c2e | |
parent | 67936ef2be46a6942f302964f31cff5c237f6941 [diff] |
Refactor DohConnection and add an explicit statemachine into it Add the explicit state machine in DohConnection to prevent accidental state changes that could cause DNS to get stuck. Bug: 196717322 Test: atest Change-Id: Ic98d7313cfd3985f861368bdff47ea27b69998c0
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.