summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-09 19:36:31 +0200
committerdefault <nobody@localhost>2023-08-09 19:36:31 +0200
commit203dd883896c015429a60deaa16726af2402706f (patch)
treea47f468a3353e93580f9218c2bc7e5982e3e4ff5 /activitypub.c
parent912cfb5aaa915829efe92cc34ad7ad888e93c14a (diff)
Be more strict in not retrying on permanent errors.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index fdccf1c..6c8c484 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1430,8 +1430,8 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
/* bring the actor */
a_status = actor_request(snac, actor, &actor_o);
- /* if the actor does not explicitly exist, discard */
- if (a_status == 404 || a_status == 410) {
+ /* do not retry permanent failures */
+ if (a_status == 404 || a_status == 410 || a_status < 0) {
snac_debug(snac, 1,
xs_fmt("dropping message due to actor error %s %d", actor, a_status));