diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-10 14:58:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-10 14:58:49 +0100 |
commit | d0c01232f3a5284e9893a73794c6a8b1181189ff (patch) | |
tree | 293eaa1e7fbbe1a7470e876cc1827457928987d4 /src | |
parent | 65d56f29996d0a23d3cc2db6a5f9e1b03c46031b (diff) | |
download | rspamd-d0c01232f3a5284e9893a73794c6a8b1181189ff.tar.gz rspamd-d0c01232f3a5284e9893a73794c6a8b1181189ff.zip |
[Fix] When doing AV scan select a differen server for retransmit
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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(), |