commit | 67936ef2be46a6942f302964f31cff5c237f6941 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Mon Sep 06 18:02:51 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Fri Sep 10 17:04:46 2021 +0800 |
tree | 95de57d0b5459592899f58ce710ad92098a6d9db | |
parent | 094d9ab72cc2dd9c4d11e31a27ffc6bab0cf9733 [diff] |
Fix the bug of receiving long DNS answer on DoH It's a bug that we only accept DNS answers within a single H3 data event on DoH. Fix it by caching the answer data until receiving H3 event Finished. It also enables the test server to send answers through multiple H3 data events. Bug: 195292547 Test: atest Change-Id: Iad2042aa8f8e44dd96b3e398a8f7381314dde3ff
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.