diff options
author | default <nobody@localhost> | 2022-12-10 10:36:31 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-10 10:36:31 +0100 |
commit | 6fd5d14428e6a6145cda2ee1a25118696da4e4eb (patch) | |
tree | 00ab4a270f55b7c4d1d9b7a65c0246e9292c9beb | |
parent | 32b52bb1097e404d0fad9e4a11d2a5686b675e26 (diff) |
In process_queue(), do not retry for 404 or 410 status.
-rw-r--r-- | activitypub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 2b87ec7..bb964a9 100644 --- a/activitypub.c +++ b/activitypub.c @@ -983,6 +983,10 @@ void process_queue(snac *snac) if (!valid_status(status)) { /* error sending; requeue? */ + if (status == 404 || status == 410) + /* explicit error: discard */ + snac_log(snac, xs_fmt("process_queue error %s %d", inbox, status)); + else if (retries > queue_retry_max) snac_log(snac, xs_fmt("process_queue giving up %s %d", inbox, status)); else { |