commit | 7d2fbb81a3f1282cf5db503e66772d1f0c86d872 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Wed Apr 14 14:28:05 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Thu Apr 15 12:59:46 2021 +0000 |
tree | def8e2f3947cb6e201a2f2c932dddabe69896998 | |
parent | 72799f37c67ec1273b740dd37061772988f093a7 [diff] |
Fix the unexpected getaddrinfo error code changing due to parallel lookup Parallel lookup unexpectedly changed the error code when the queries are blocked by system. 2 problems here, 1. the errno from query thread isn't correctly propagated to the main thread. 2. The rcode handling is changed. Fix them in this CL and also add a test for this problem. Bug: 185097438 Test: atest Change-Id: I4c8e2895baa9d3d8ece40fe7bb8c3975672997a4
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.