commit | a33e2c9d1ddafa6a9b98840dba95525fbf2a4ab7 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Mar 08 21:11:21 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Mar 09 11:41:34 2022 +0800 |
tree | 69a2fe49a08788b62bcdcb2cb1552d2204cc22e2 | |
parent | b537dfdd39e6a57c73db121849dd13ffd2590f54 [diff] |
Make boot_time::timeout() timeout immediately when passing zero duration It's possible that the duration returned by Quiche timeout() is Duration::ZERO. However, boot_time::sleep(Duration::ZERO).await doesn't wake up immediately in tokio::select. This results in missing one Quiche on_timeout() call. Bug: 223356608 Test: cd packages/modules/DnsResolver && atest Change-Id: Ib9d7fc9792158262d87a86f4e474e618efdbf408
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.