aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDennis Fink2026-10-31 19:00:17 +0100
committerDennis Fink2026-10-31 19:00:17 +0100
commitdf3b79e2c89978ec21dc2da7f90801dce33aeab2 (patch)
tree146f34d59b2b1957e53856a58777a3453960a2a5 /contrib
parentf7c0691e0da84644ea8b2b83ad5574fe179da59b (diff)
downloadwebmentions-ssg-df3b79e2c89978ec21dc2da7f90801dce33aeab2.tar.gz
webmentions-ssg-df3b79e2c89978ec21dc2da7f90801dce33aeab2.zip
fix(receiver): prevent endless verification recovery
Cap stale verification requeues so repeatedly lost or crashing tasks eventually become terminal failures instead of cycling indefinitely. Reject URLs that httpx cannot safely fetch before enqueueing, and persist unexpected verification errors as terminal failures.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/webmentions-ssg.example.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/webmentions-ssg.example.cfg b/contrib/webmentions-ssg.example.cfg
index 45ae297..577eeef 100644
--- a/contrib/webmentions-ssg.example.cfg
+++ b/contrib/webmentions-ssg.example.cfg
@@ -73,6 +73,9 @@ MAX_REDIRECTS = 20 # also used for outgoing requests
MAX_SOURCE_BYTES = 1_000_000
# Requeue stuck verifications and lost queued tasks after 15 minutes.
VERIFICATION_TIMEOUT_SECONDS = 900
+# Max stale-row requeues before marking the Webmention failed. Manual
+# reverification or a new submission after the cooldown resets this counter.
+VERIFICATION_MAX_RECOVERIES = 3
# Huey cron expression: every five minutes (in UTC).
VERIFICATION_REAPER_SCHEDULE = "*/5 * * * *"