commit 25b0829
default
·
2023-12-11 14:04:30 +0000 UTC
parent bfdaf38
Do not retry Delete messages on actor error.
1 files changed,
+6,
-0
+6,
-0
1@@ -1511,6 +1511,12 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
2 }
3
4 if (!valid_status(a_status)) {
5+ /* do not retry 'Delete' messages */
6+ if (strcmp(type, "Delete") == 0) {
7+ srv_debug(1, xs_fmt("dropping 'Delete' message due to actor error", actor, a_status));
8+ return -1;
9+ }
10+
11 /* other actor download errors may need a retry */
12 srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
13