summaryrefslogtreecommitdiff
path: root/player-server/internal/api/integration_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-19 19:22:38 +0300
committerPaul Buetow <paul@buetow.org>2026-05-19 19:22:38 +0300
commit3ce06a482fafd884013c9a7a827d9ccb183a05da (patch)
tree6052c8fed4b8a08e241aa94cdd8a235324314e4e /player-server/internal/api/integration_test.go
parent4215db6718d4ea662084b647398536aa51934ac6 (diff)
Add HTTP retry + per-host backoff to podcast feed fetching
Wraps the feed checker's HTTP GET in a bounded retry loop (3 attempts, exponential 500ms->1s->2s) and adds a per-host failure tracker so a flaky host is skipped for 5 minutes instead of being hammered on every scheduled tick. Skipped fetches still bump the existing consecutive_failures counter so feed-level scheduling continues to honour persistent failures. 5xx and transport errors are retried; 4xx is treated as terminal so we do not retry on 404/410/403. Retry params and host-backoff window are configurable via a FeedFetchPolicy struct field with exported defaults.
Diffstat (limited to 'player-server/internal/api/integration_test.go')
0 files changed, 0 insertions, 0 deletions