diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-09 10:45:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-09 10:45:52 +0100 |
commit | 442b9fb641bc8d6feff331a19d9f163176f8cc2d (patch) | |
tree | 9ee1fbadfcf1c4be2897b2eea373e4063f3be192 /src | |
parent | 5d2e4dc2c1d91741b9937d43756321692ac4a9c0 (diff) | |
download | rspamd-442b9fb641bc8d6feff331a19d9f163176f8cc2d.tar.gz rspamd-442b9fb641bc8d6feff331a19d9f163176f8cc2d.zip |
[Feature] Expire processing items for URL redirector aggressively
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/url_redirector.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua index cc654b1fa..2ba645f19 100644 --- a/src/plugins/lua/url_redirector.lua +++ b/src/plugins/lua/url_redirector.lua @@ -145,11 +145,11 @@ local function resolve_cached(task, orig_url, url, key, param, ntries) key, -- hash key true, -- is write redis_reserve_cb, --callback - 'SETNX', -- command - {key, 'processing'} -- arguments + 'SET', -- command + {key, 'processing', 'EX', tostring(settings.timeout * 2), 'NX'} -- arguments ) if not ret then - rspamd_logger.errx(task, 'Couldn\'t schedule SETNX') + rspamd_logger.errx(task, 'Couldn\'t schedule SET') end else resolve_url() |