RTR4: the router keeps a refused ask as a closed record, the oldest removed past refused-kept

Builds: design 47 G §570
This commit is contained in:
2026-11-12 05:01:57 +01:00
parent 177115d6cd
commit f8160922c9
7 changed files with 156 additions and 8 deletions
+9 -1
View File
@@ -164,6 +164,14 @@
"trusted": false,
"default": 100
},
"refused-kept": {
"type": "number",
"description": "how many refused asks of one asker the router keeps as closed records, a whole number from 1 to 1000: the twenty-first refusal of an asker removes its oldest (design 47 G section 570).",
"minimum": 1,
"maximum": 1000,
"trusted": false,
"default": 20
},
"settle-seconds": {
"type": "number",
"description": "seconds a delivery that ended well still holds the messages about what it changed, so a problem that passes as the delivery settles is not sent (ADR 0505 §3); 0 holds nothing after the end.",
@@ -194,7 +202,7 @@
"type": "file",
"path": "${dir:state}/settings.json",
"mode": "0600",
"takes-config": ["time-zone", "desktop-machines", "only-what-needs-me", "messages-per-hour", "settle-seconds", "readers"],
"takes-config": ["time-zone", "desktop-machines", "only-what-needs-me", "messages-per-hour", "settle-seconds", "refused-kept", "readers"],
"merge": "json",
"template": "files/settings.json",
"owner": "messenger"