commit | 7e08b856cb6ea6f3ae5e01fa8545a4434f8be943 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Oct 18 18:27:43 2019 +0800 |
committer | Mike Yu <yumike@google.com> | Thu Feb 13 13:48:54 2020 +0800 |
tree | 4b28d0a903b32c9ce39912b6913f8b6cf4aa0fe5 | |
parent | bd13699a1c3a3ead1996dceb2a802a28d152cb39 [diff] |
Change DnsTlsTransport to store a copy of a query This is preparation for configurable per-query timeout in order to allow a lookup thread to exit while a DnsTlsSocket loop thread is still waiting the response. Since a DnsTlsTransport instance is accessible to both lookup threads and a DnsTlsSocket loop thread, change it to store a copy of a query in case of any operation needed for the query in the loop thread; for example, the response arrives after timeout. Bug: 120182528 Bug: 141218721 Test: cd packages/modules/DnsResolver && atest Change-Id: I57bf40cb1eb0d688d5328242649c841f20d81430
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.