]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Indicate upstream error on timeout
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jun 2016 12:19:40 +0000 (13:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jun 2016 12:19:40 +0000 (13:19 +0100)
src/libstat/backends/redis_backend.c

index 2d280642533ffb06d7572ef733fc1382eba181de..a935359bd287ca097dfee1f8a8849bdf2c77bffc 100644 (file)
@@ -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;