This is an automated email from the ASF dual-hosted git repository.

shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ecffea  fix: add code which is removed in #3991 by mistake. (#4082)
3ecffea is described below

commit 3ecffea638637fc44c1480159fed81623f2875fb
Author: 罗泽轩 <[email protected]>
AuthorDate: Mon Apr 19 22:14:52 2021 +0800

    fix: add code which is removed in #3991 by mistake. (#4082)
    
    Signed-off-by: spacewander <[email protected]>
---
 apisix/plugins/limit-count/limit-count-redis.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/apisix/plugins/limit-count/limit-count-redis.lua 
b/apisix/plugins/limit-count/limit-count-redis.lua
index 7958bdc..253d557 100644
--- a/apisix/plugins/limit-count/limit-count-redis.lua
+++ b/apisix/plugins/limit-count/limit-count-redis.lua
@@ -93,6 +93,11 @@ function _M.incoming(self, key)
         return nil, err
     end
 
+    local ok, err = red:set_keepalive(10000, 100)
+    if not ok then
+        return nil, err
+    end
+
     if remaining < 0 then
         return nil, "rejected"
     end

Reply via email to