commit | b585d8b03a0ed507f7001965c7d0a43a9d709677 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Mar 16 15:38:47 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Mar 21 14:01:14 2022 +0800 |
tree | 414abceea335aaead3861431d94355457dd2a49f | |
parent | adc98bd97bf52878513e060edead999526ea101a [diff] |
Remove the waiting time when restart test DoH servers We used to wait for 100 milliseconds before restart test DoH servers in order to avoid binding a socket address that hasn't be released. With this change, test DoH servers can try to bind the socket address again, so the 100-milliseconds waiting time can be removed. Bug: 215818810 Test: wrote and ran a test that calls doh.stopServer() and then doh.startServer() 5000 times Change-Id: I89acfd0997beeca0eb53139919a56931b2e79986
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.