Files
worldmonitor/scripts
Elie Habib 67cdf009fd fix(relay): add exponential backoff for failing RSS feeds (#853)
RSS feeds that fail (socket hang up, timeout, non-2xx) were retried
every 60s indefinitely, hammering broken upstreams. Adds per-feed
exponential backoff: 1min → 2min → 4min → 8min → 15min cap.

- Separate rssBackoffUntil/rssFailureCount maps (no response cache mutation)
- Stale successful data served during backoff (BACKOFF-STALE)
- 503 + Retry-After header when no stale data available
- Failure count preserved across backoff expiry for fast re-escalation
- Reset on success (2xx or 304 revalidation)
2026-03-03 03:13:09 +04:00
..