diff options
| author | 2022-12-10 10:36:31 +0100 | |
|---|---|---|
| committer | 2022-12-10 10:36:31 +0100 | |
| commit | 6fd5d14428e6a6145cda2ee1a25118696da4e4eb (patch) | |
| tree | 00ab4a270f55b7c4d1d9b7a65c0246e9292c9beb /activitypub.c | |
| parent | Merge branch 'master' of grunfink-codeberg:grunfink/snac2 (diff) | |
| download | snac2-6fd5d14428e6a6145cda2ee1a25118696da4e4eb.tar.gz snac2-6fd5d14428e6a6145cda2ee1a25118696da4e4eb.tar.xz snac2-6fd5d14428e6a6145cda2ee1a25118696da4e4eb.zip | |
In process_queue(), do not retry for 404 or 410 status.
Diffstat (limited to 'activitypub.c')
| -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) | |||
| 983 | 983 | ||
| 984 | if (!valid_status(status)) { | 984 | if (!valid_status(status)) { |
| 985 | /* error sending; requeue? */ | 985 | /* error sending; requeue? */ |
| 986 | if (status == 404 || status == 410) | ||
| 987 | /* explicit error: discard */ | ||
| 988 | snac_log(snac, xs_fmt("process_queue error %s %d", inbox, status)); | ||
| 989 | else | ||
| 986 | if (retries > queue_retry_max) | 990 | if (retries > queue_retry_max) |
| 987 | snac_log(snac, xs_fmt("process_queue giving up %s %d", inbox, status)); | 991 | snac_log(snac, xs_fmt("process_queue giving up %s %d", inbox, status)); |
| 988 | else { | 992 | else { |