Skip to content

bug: limit-conn cache never update #2019

@JoeyLee0201

Description

@JoeyLee0201

Issue description

Hello,

I have a consumer who use limit-conn plugin and set value of conn to 10,

But when I update the value of conn, like 20. It will still limit connection number to 10.

I find there is a cache mechanism in this plugin like:

image

How could I fix this problem?

Also, what's the structure of lim?

Could I get the value of conn in lim, thus I can compare like:

if lim.conn ~= conf.conn then
....

Environment

  • apisix version (cmd: apisix version): 1.4
  • OS: docker image

Minimal test code / Steps to reproduce the issue

What's the actual result? (including assertion message & call stack if applicable)

What's the expected result?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions