From d0c01232f3a5284e9893a73794c6a8b1181189ff Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 10 May 2018 14:58:49 +0100 Subject: [PATCH] [Fix] When doing AV scan select a differen server for retransmit --- src/plugins/lua/antivirus.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 4fb683c41..d5dc63ae0 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -462,6 +462,10 @@ local function clamav_check(task, rule) if err == 'IO timeout' then if retransmits > 0 then retransmits = retransmits - 1 + -- Select a different upstream! + upstream = rule.upstreams:get_upstream_round_robin() + addr = upstream:get_addr() + tcp.request({ task = task, host = addr:to_string(), -- 2.39.5