Fix: main thread timeout early than work thread

This commit is contained in:
DaZuo0122
2026-01-17 19:07:10 +08:00
parent 144e801e13
commit d5b92ede7b
2 changed files with 52 additions and 32 deletions

View File

@@ -25,8 +25,11 @@ This document tracks the current DNS leak detector implementation against the de
- `dns leak watch --iface-diag` (diagnostics for capture-capable interfaces).
- Interface selection:
- per-interface open timeout to avoid capture hangs
- stable default pick (up, non-loopback, named ethernet/wlan) before fallback scan
- ordered scan prefers non-loopback + named ethernet/wlan and interfaces with IPs
- verbose logging of interface selection attempts (use `-v` / `-vv`)
- overall watch timeout accounts for worst-case interface scan time
- Capture loop:
- receiver runs in a worker thread; main loop polls with a short timeout to avoid blocking
## Partially implemented
- Route/interface classification: heuristic only (loopback/tunnel/physical by iface name).