commit | 607f74e7efc42d0cac9ea6298973013be0177742 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Jun 06 08:10:26 2023 +0000 |
committer | Mike Yu <yumike@google.com> | Tue Jun 06 09:17:21 2023 +0000 |
tree | 58506a4b9fe6b71ada63d0d4c72a439819ec7d25 | |
parent | bdc09ba4ed4859a2796f1c73a2a8f87d24d9664b [diff] |
DoH: Send pending data out right after handle a buffered DNS request After handling a buffered DNS request, the DnsResolver doesn't send the DoH query out to the server immediatly. Instead, it starts waiting for any new DNS request or any packets from the server, which can lead to the DNS request timed out. So this change makes the DnsResolver send any pending data immediately after it handles a buffered DNS request. Bug: 275539642 Test: ran resolv_integration_test.PrivateDnsDohTest#RunOutOfStreams 2000 times Change-Id: I4386a929618a251e3b92fe4724fdfe85e0c44bd4
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.