commit 9e39d84: [Fix] Upstreams: Don't ignore revive_time config option

Anton Yuzhaninov citrin+git at citrin.ru
Wed Jun 29 19:56:03 UTC 2022


Author: Anton Yuzhaninov
Date: 2022-06-29 15:10:33 +0100
URL: https://github.com/rspamd/rspamd/commit/9e39d84d330da1d94361b40d65dbeaf761fb19ce (refs/pull/4208/head)

[Fix] Upstreams: Don't ignore revive_time config option

---
 src/libutil/upstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c
index 7eb3e402e..4419d6fed 100644
--- a/src/libutil/upstream.c
+++ b/src/libutil/upstream.c
@@ -184,7 +184,7 @@ rspamd_upstreams_library_config (struct rspamd_config *cfg,
 		ctx->limits.max_errors = cfg->upstream_max_errors;
 	}
 	if (cfg->upstream_revive_time) {
-		ctx->limits.revive_time = cfg->upstream_max_errors;
+		ctx->limits.revive_time = cfg->upstream_revive_time;
 	}
 	if (cfg->upstream_lazy_resolve_time) {
 		ctx->limits.lazy_resolve_time = cfg->upstream_lazy_resolve_time;


More information about the Commits mailing list