Files
FreshRSS/p
Cron 94ff6e4366 Stop the unread-count poller after the session ends (#9065)
* fix: stop the unread poller after the session ends

refreshUnreads() polls nbUnreadsPerFeed every 2 minutes and never checks
the response status, so once the session ends it keeps polling a dead
session indefinitely. Each request is a 401 (auth proxy / OIDC image) or
403 (stock); behind fail2ban the repeated failures ban the client IP.

Handle it like the other badAjax(status == 403) call sites: on a 401/403,
reload to re-authenticate instead of retrying.

* Enlarge HTTP 4xx status range

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-07-18 22:26:32 +02:00
..
2025-09-05 15:56:46 +02:00
2025-09-27 14:40:35 +02:00