You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/04 10:54:45 UTC

[GitHub] [apisix] ACanOfGas opened a new issue #1986: bug: plugins limit-conn repeatedly leaving key

ACanOfGas opened a new issue #1986:
URL: https://github.com/apache/apisix/issues/1986


   ### Issue description
   When configuring the limit-conn plugin for both global and route rules,  ctx.limit_conn,ctx.limit_conn_key, ctx.limit_conn_delay
   will be override.  in log phase, Repeatedly releasing route key and global rule key not release
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.4
   * OS:centos8.1
   
   ### Minimal test code / Steps to reproduce the issue
   1. configure the limit-conn plugin for both global and route rules 
   2. Access trigger upper global limmit conn bound
   3. Follow-up requests are all denied
   
   route-config
   "plugins":{
       "anti-replay":{
           "validperiod":300,
           "enable":false
       },
       "proxy-rewrite":{
           "uri":"/enlink/api/client/conf/v2/qrList",
           "scheme":"https"
       },
       "limit-conn":{
           "conn":10,
           "rejected_code":510,
           "burst":10,
           "default_conn_delay":1,
           "key":"remote_addr"
       }
   }
   global-config
   {
       "value":{
           "plugins":{
               "limit-conn":{
                   "conn":50,
                   "burst":2,
                   "rejected_code":550,
                   "key":"remote_addr",
                   "default_conn_delay":1
               }
           },
           "id":"f82088a019d34f929e552d44a23555ff"
       },
       "createdIndex":204,
       "key":"/apisix/global_rules/f82088a019d34f929e552d44a23555ff",
       "modifiedIndex":204
   }
   ### What's the actual result? (including assertion message & call stack if applicable)
   Follow-up requests are all denied
   ### What's the expected result?
   normal access


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #1986: bug: plugins limit-conn repeatedly leaving key

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1986:
URL: https://github.com/apache/apisix/issues/1986#issuecomment-668692197


   @ACanOfGas you can make a try with new PR: https://github.com/apache/apisix/pull/1994
   
   I think it can work in normally now.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis closed issue #1986: bug: plugins limit-conn repeatedly leaving key

Posted by GitBox <gi...@apache.org>.
membphis closed issue #1986:
URL: https://github.com/apache/apisix/issues/1986


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org