commit | ed78fdaf9b08551599bc79736729f7cf3fc6eb06 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Mon Oct 25 13:04:44 2021 -0700 |
committer | Mike Yu <yumike@google.com> | Tue Nov 09 21:00:59 2021 +0800 |
tree | 8f17c8e4ab91793d5520a619394000f565fb6039 | |
parent | f42426ec380f66ccdf28e463c5386c3b611a6b94 [diff] |
DoH: Modularize main event loop * Connection now provides HTTP/3. * Network has the logic for resolving DNS and maintaining a Connection. * Dispatcher routes requests to the appropriate Network or creates one if needed. * IO and maintenance is performed via tasks rather than manually pushing the futures in the main event loop. Bug: 202081046 Test: resolv_integration_test Test: resolv_stress_test + I682678b84b35c575a3eb88c2c1c67aefd195616c Change-Id: I4296d0c7a7852951f41418b18686794d8df781bd
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.