feat: SRTT-based nameserver selection #19
Reference in New Issue
Block a user
Delete Branch "feat/srtt-nameserver-selection"
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?
Summary
src/srtt.rsmodule:SrttCachewith per-IP RTT recording, failure penalty (5s), decay (5min), TCP penalty (+100ms)enabledflag embedded inSrttCache— all methods become no-ops when disabled, no boolean threading through signaturestcp_with_srtthelper to deduplicate 4 identical TCP match arms insend_query[upstream] srtt = true/false(default:true)scripts/benchmark.shwithcompare-srtt,compare-dnssec,compare-allmodesBenchmarks (40 domains, warm SRTT + cold cache)
Test plan
make allpasses (fmt, clippy, audit, build, 90 tests)disabled_is_noop,eviction_removes_oldestscripts/benchmark.sh compare-alldig @127.0.0.1 google.comresolves <200ms after warmupsrtt = falsein config, verify slower resolution🤖 Generated with Claude Code