Files
mini-dns/server.go
NeoMody ec9cdb2784 Fix cache TTL extraction, add TCP idle timeout, close upstreams on shutdown
- extractTTL: use 0 as initial value and take actual minimum TTL from
  answer records. Previously hardcoded 300 would cap higher TTLs.
- TCP handler: add 90s read deadline to prevent idle connections from
  blocking goroutines indefinitely.
- Server.Close: close upstream groups to release connection pool resources.
2026-04-02 05:42:20 +08:00

7.6 KiB