Add a method/version fallback ladder to the DoH canary probe (D-0056) #136
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/doh-probe-fallback-ladder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Raises the DoH canary-probe confirmation rate with a small per-address fallback ladder (D-0056).
A live probe cycle over the full 1976-address set confirmed only 6.0% (118). Because the probe connects by IP, most compliant resolvers reject the default POST-over-HTTP/2 request:
Of the 1339 Refused, 934 returned no HTTP response and the rest returned 404/400/505/etc. - path/method/HTTP-version mismatches, not "this is not a DoH server".
DohCanaryProbe.ProbeAsyncnow walks, per address: POST then GET (RFC 8484?dns=base64url of the same wire query), each over HTTP/2 then HTTP/1.1. It returnsConfirmedas soon as any variant returns HTTP 200 +application/dns-message+ the canary token; otherwise it reports the most informative non-confirming outcome (RespondedNonCompliant > HTTP-error Refused > Timeout > transport Refused). The ladder short-circuits once an address returns no HTTP response twice in a row, capping an unreachable host at two attempts instead of four.application/dns-message+ token).How was this tested?
dotnet build- 0 errors, 0 warnings (full solution)dotnet test- Application suite 586 pass, incl. 5 newProbeAsynctests (first-attempt confirm, HTTP/1.1 retry on 505, GET fallback on 405, short-circuit after two unanswered attempts, non-compliant reporting)Checklist