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

Commit 21ac6240 authored by Luke Huang's avatar Luke Huang
Browse files

Fix the wrong condition statement in tokio select for doh_handler and correct...

Fix the wrong condition statement in tokio select for doh_handler and correct some return code in doh_query

1. Currently, the first branch of tokio select in doh_handler is not
strict enough, which causes the first branch can never return PENDING
state if no doh_conn is available. If that happen, tokio select! might
end up comsuming all the budget and get stuck.
To fix this problem, make the precondition stricter.

2. Correct some return code in doh_query, which is used to notify
   DnsResolver fallback to DoT or UDP.

Test: manual test && atest
Bug: 196717322

Change-Id: Ib1f38f2ab7c227780213325a859e19e17fd11d3c
parent a2f85fb6
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