commit | 08b13d2b4227f12d021b7c18cdd0d6940a66682d | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Wed Feb 05 14:46:21 2020 +0800 |
committer | Luke Huang <huangluke@google.com> | Tue Feb 11 09:26:19 2020 +0000 |
tree | 2bc9e3a7ec7526adc33dc508bac25cfa554d2b55 | |
parent | 731dc404a45c92211c926f3e4dff1fdd06603342 [diff] |
Fix async DNS flag NO_CACHE_STORE doesn't work as expected The stale cache case isn't handled correctly while performing cahce_lookup with flag NO_CACHE_STORE, which caused this problem. Fix it and add a test to ensure it won't happen again. Test: atest Bug: 148842821 Change-Id: I72a2211a636cadc72009a5542f7c755c30329c43
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.