]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Stop task timeout timer on idempotent stage
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Oct 2019 13:31:57 +0000 (13:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Oct 2019 13:31:57 +0000 (13:31 +0000)
src/libserver/task.c

index 9e87088a2dfab2e177a272ac73a104add4e320e7..2fb9bf1d9797803d84a0f718ec5b4e7265a228b2 100644 (file)
@@ -722,7 +722,14 @@ rspamd_task_process (struct rspamd_task *task, guint stages)
        case RSPAMD_TASK_STAGE_PRE_FILTERS_EMPTY:
        case RSPAMD_TASK_STAGE_PRE_FILTERS:
        case RSPAMD_TASK_STAGE_FILTERS:
+               all_done = rspamd_symcache_process_symbols (task, task->cfg->cache, st);
+               break;
        case RSPAMD_TASK_STAGE_IDEMPOTENT:
+               /* Stop task timeout */
+               if (ev_can_stop (&task->timeout_ev)) {
+                       ev_timer_stop (task->event_loop, &task->timeout_ev);
+               }
+
                all_done = rspamd_symcache_process_symbols (task, task->cfg->cache, st);
                break;