mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-24 00:23:38 +00:00
In process_queue(), do not retry for 404 or 410 status.
This commit is contained in:
parent
32b52bb109
commit
6fd5d14428
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue