commit | 882eeb91d914fb540cc9dbff745ebea37b820b45 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Feb 15 15:51:32 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Feb 16 13:55:39 2022 +0800 |
tree | 85ac7fdb331b26b4276a31e31508a4c33aafb68d | |
parent | 75bef416ad1d4cbfac207787a2c9e1979b19f940 [diff] |
DoH: Make session resumption as a flag Use a flag, doh_session_resumption, to control whether or not to enable session resumption. If the flag is unset, session resumption is disabled. Because the value of the flag is cached in the DoH client, if there are some networks existing before setting a new value to the flag, those network will still use the old value of the flag rather than the new one until private DNS settings changes. Bug: 205922811 Test: cd packages/modules/DnsResolver && atest Test: changed the flag and checked that DnsResolver behaved as expected Change-Id: I6fb24d4251b6e0fc163d169bb9cc68703bb76812
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.