aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-19 09:56:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-19 09:56:12 +0100
commita59ceca26167101ac0f5e048f8bb610a6b358c2c (patch)
treedb4533e1d46cca6978c3e8714ba5c8ce7dc965a7 /src/libstat/stat_config.c
parent04e76dde9e34ba53f1d7790d7aec791eddfd7342 (diff)
downloadrspamd-a59ceca26167101ac0f5e048f8bb610a6b358c2c.tar.gz
rspamd-a59ceca26167101ac0f5e048f8bb610a6b358c2c.zip
[Minor] Another try to fix races in redis stats
Issue: #3088
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r--src/libstat/stat_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c
index bc4c28b5d..17d0fdcc7 100644
--- a/src/libstat/stat_config.c
+++ b/src/libstat/stat_config.c
@@ -559,7 +559,8 @@ rspamd_stat_ctx_register_async (rspamd_stat_async_handler handler,
* fast as possible
*/
elt->timer_ev.data = elt;
- ev_timer_init (&elt->timer_ev, rspamd_async_elt_on_timer, 0.0, 0.0);
+ ev_timer_init (&elt->timer_ev, rspamd_async_elt_on_timer,
+ 0.1, 0.0);
ev_timer_start (st_ctx->event_loop, &elt->timer_ev);
}
else {