commit | a772c209875d2f6f02cfddc06eb7b97c573b6c2d | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Sep 23 17:47:21 2019 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Oct 09 21:44:33 2019 +0800 |
tree | bf26dc64b738a3d7482d418d1bcb30f76ae9f615 | |
parent | 0a423e4b35dacada4996cbf252a4f537feb1265a [diff] |
Make private DNS connect timeout configurable It could take time to connect to a private DNS server if the system allows 6 syn-retransmissions (net.ipv4.tcp_syn_retries = 6), which can take time more than 2 minutes. This change allows us to configure the timeout value via dnsresolver binder service, and keep the default timeout value the same as the original design. Bug: 120182528 Bug: 141218721 Test: atest --include-subdirs packages/modules/DnsResolver Test: m com.android.resolv adb install com.android.resolv rebooted Change-Id: I8711a31172cfc671bf348191db363e7863831470
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.