commit | 549be5d7a989843eeab8e85ef3c39d2f68421aea | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Nov 23 11:35:58 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Nov 23 16:32:09 2021 +0800 |
tree | 69fef8f7439498cfd106878eaf2545287de13074 | |
parent | 70ac04b9fc21004384a2a651e9d9989257e48e78 [diff] |
Fix testing DoH server not to concatenate responses This comes from one of the review comments in aosp/1881165 that points out a potential bug in testing DoH server. Instead of concatenating all the packets returned by conn.send(), we should send each packet separately. Besides, flush_egress() is changed not to return Result::Ok if conn.send() returns quiche::Error::Done. Bug: 181642979 Test: cd packages/modules/DnsResolver && atest Change-Id: I667f2f15f9db399a8362fc2be28f89c5bd3a016a
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.