From 203dd883896c015429a60deaa16726af2402706f Mon Sep 17 00:00:00 2001 From: default Date: Wed, 9 Aug 2023 19:36:31 +0200 Subject: Be more strict in not retrying on permanent errors. --- activitypub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activitypub.c') 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)); -- cgit v1.2.3