nic-chen commented on a change in pull request #4774:
URL: https://github.com/apache/apisix/pull/4774#discussion_r684700344
##########
File path: apisix/plugins/limit-conn/init.lua
##########
@@ -41,7 +41,11 @@ function _M.increase(conf, ctx)
local lim, err = lrucache(conf, nil, create_limit_obj, conf)
if not lim then
core.log.error("failed to instantiate a resty.limit.conn object: ",
err)
- return 500
+ if conf.degradation then
+ return
+ else
+ return 500
+ end
Review comment:
```suggestion
if conf.degradation then
return
end
return 500
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]