ZaStoGram/docs/superpowers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh 7d77542e9b Delay prefetch during MTProxy startup and improve DNS outage handling
Implement proxy warmup-aware prefetch scheduling to prevent flooding the network during MTProxy initialization. Add DNS resolver provider failure tracking and extend stale DNS cache to 24 hours for better connectivity resilience.

Key changes:
- Classify and delay story/sticker/media prefetch operations in FileLoader, MediaDataController, and StoriesController
- Track DNS resolver failures per provider to detect outages
- Extend HOST_RESOLVER_STALE_TTL_MS from 1 hour to 24 hours
- Add validation for empty hostnames to prevent malformed DNS queries
- Record DNS cache hits (fresh and stale) for proxy warmup monitoring
- Reorder DNS outage checks before warmup failure callbacks

Also updates the DNS verification tests and proxy rotation guard scripts to validate the new prefetch and DNS failure tracking behavior.
2026-06-27 20:33:01 +03:00
..
specs Delay prefetch during MTProxy startup and improve DNS outage handling 2026-06-27 20:33:01 +03:00