commit | cc164db0b4cc50a72dfe90c01131e3eea6ad244e | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Wed Dec 13 17:58:35 2023 +0800 |
committer | Ken Chen <cken@google.com> | Wed Dec 13 17:58:35 2023 +0800 |
tree | 2931f156124d98d6187daf6aff286d3630807649 | |
parent | b7f8f545733a2857819f73e3ae24219b9f6d2d29 [diff] |
[Test] Fix BlockDnsQuery_FlaggedOff failures in MTS The test fails in MTS because the fake DoT server closes SSL connection after replying to each query. DNS resolver needs to disable dot_async_handshake flag and have at least a dot retry. But the current settings pushed by server can be different. Test should fix the setting. Bug: 313401764 Test: adb shell setprop persist.device_config.netd_native.dot_async_handshake 0 setprop persist.device_config.netd_native.dot_maxtries 3 atest resolv_integration_test Change-Id: Idb4fb3f88466b198c91bbab171f9c755a01468f4
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.