diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-10 14:42:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-10 14:42:33 +0100 |
commit | 68d4ae45572f4a5c2c52cd162cc2a050d75a66c9 (patch) | |
tree | e1d84e514ae31495b6919d1b582b6ca276a6df46 /src/rspamd_proxy.c | |
parent | 6a7437c48a8d92ac5f80756643e128f223eb582e (diff) | |
download | rspamd-68d4ae45572f4a5c2c52cd162cc2a050d75a66c9.tar.gz rspamd-68d4ae45572f4a5c2c52cd162cc2a050d75a66c9.zip |
[Fix] Extend task_timeout to postfilters stage
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 086dfd2c1..6b1eec237 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1779,7 +1779,8 @@ rspamd_proxy_self_scan (struct rspamd_proxy_session *session) if (session->ctx->default_upstream->timeout > 0.0) { task->timeout_ev.data = task; ev_timer_init (&task->timeout_ev, rspamd_task_timeout, - session->ctx->default_upstream->timeout, 0.0); + session->ctx->default_upstream->timeout, + session->ctx->default_upstream->timeout); ev_timer_start (task->event_loop, &task->timeout_ev); } @@ -1787,7 +1788,8 @@ rspamd_proxy_self_scan (struct rspamd_proxy_session *session) if (session->ctx->cfg->task_timeout > 0) { task->timeout_ev.data = task; ev_timer_init (&task->timeout_ev, rspamd_task_timeout, - session->ctx->cfg->task_timeout, 0.0); + session->ctx->cfg->task_timeout, + session->ctx->default_upstream->timeout); ev_timer_start (task->event_loop, &task->timeout_ev); } } |