summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-23 13:19:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-23 13:19:40 +0100
commit0702f2f1229d3b7f5ab9a896e33dbdf6e4156fdc (patch)
tree0de2e56c92c1c0186da07916a8eabdcfca97f4aa
parente3aed2666a167ed0a9d63d972531027aaa2167e5 (diff)
downloadrspamd-0702f2f1229d3b7f5ab9a896e33dbdf6e4156fdc.tar.gz
rspamd-0702f2f1229d3b7f5ab9a896e33dbdf6e4156fdc.zip
[Fix] Indicate upstream error on timeout
-rw-r--r--src/libstat/backends/redis_backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index 2d2806425..a935359bd 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -726,6 +726,8 @@ rspamd_redis_timeout (gint fd, short what, gpointer d)
msg_err_task_check ("connection to redis server %s timed out",
rspamd_upstream_name (rt->selected));
+ rspamd_upstream_fail (rt->selected);
+
if (rt->redis) {
redis = rt->redis;
rt->redis = NULL;