diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-19 13:16:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-19 13:16:06 +0000 |
commit | 87d9d615fe6954850c56aa3a84dfa19087fb1898 (patch) | |
tree | a0842f90876d90894c9963e3ed46766b76d4c4f1 | |
parent | eb0c31d1ad5d662ce5b19751961ea5952e0ae471 (diff) | |
download | rspamd-87d9d615fe6954850c56aa3a84dfa19087fb1898.tar.gz rspamd-87d9d615fe6954850c56aa3a84dfa19087fb1898.zip |
Try to fix hang in upstream events.
-rw-r--r-- | src/libutil/upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index b164577c6..b2e32642c 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -319,7 +319,7 @@ rspamd_upstream_fail (struct upstream *up) max_error_rate = 0; } - if (error_rate > max_error_rate) { + if (error_rate > max_error_rate && up->active_idx != -1) { /* Remove upstream from the active list */ rspamd_upstream_set_inactive (up->ls, up); } |