commit 5b426fd: [Minor] Stop task timeout timer on idempotent stage
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Oct 27 13:35:09 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-27 13:31:57 +0000
URL: https://github.com/rspamd/rspamd/commit/5b426fd1ee5be0e1ff8add146e72c4629a818f5a (HEAD -> master)
[Minor] Stop task timeout timer on idempotent stage
---
src/libserver/task.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 9e87088a2..2fb9bf1d9 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -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;
More information about the Commits
mailing list