Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9b748ee3 authored by Mike Yu's avatar Mike Yu
Browse files

Skip res_doh_send() if there is no validated DoH servers

Since res_doh_send() can take around 2 milliseconds, skip calling
it when there is no DoH servers validated.

Bug: 212364676
Test: ran "dnschk --attempts 1000 --randomname"
      w/o this change it takes 36 seconds
      w/ this change it takes 32 seconds
Test: checked the log to ensure that "performing query over Https"
      is not printed when the DNS doesn't support DoH
Change-Id: I1718534889b097eb89ba12a291da0fb19f13bbbd
parent 229fedcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment