commit | 1d68adbba1fb3af845a1f58846938d671d3e6889 | [log] [tgz] |
---|---|---|
author | Zhang Wei-e7976c <e7976c@motorola.com> | Fri Aug 23 23:13:22 2019 -0500 |
committer | chenbruce <chenbruce@google.com> | Thu Oct 31 18:16:12 2019 +0800 |
tree | ceaefb1ae0bfd4a0164baa1752241ea5ccaaa3e3 | |
parent | 4873cd61ca4b2abba3a504c6752157406baecb8a [diff] |
Add private DNS validation thread tracker The behavior is that the different dns changed in 10ms every 3-5s, and this dns vibrate will be set by DnsResolver. In ResolverController, will start one thread for validate each dns server. If dns server removed, and the trace of dns server will be erased too, but dns validate thread not destory immediately. So for this scene will start new thread for dns vibrate in 10ms, and many thread will cause OOM. Test: We verified this solution in that special user environment and merged it at end of Feb 2019. We didn't get any regression issue report so far (Sep 2019) Bug: 139782337 Change-Id: I88431d77f575ccffa5af7c596a915f223e515027
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.