Skip to content

request help: suggestions on improving the default_conn_delay of the limit-conn plugin #4583

@zuiyangqingzhou

Description

@zuiyangqingzhou

Issue description

The default_conn_delay of the limit-conn plug-in is used to control the delay of forwarding to upstreams when the connection exceeds a certain threshold, but after actual testing, it is found that this delay time is not strictly in accordance with the configured delay time.

https://github.com/openresty/lua-resty-limit-traffic/blob/master/lib/resty/limit/conn.lua#L98-L101

It is found in the source code of lua-resty-limit-traffic that there is a certain calculation logic for the delay time. If req_latency is nil, the delay time is strictly in accordance with the user-defined delay time

I think a control parameter should be added in apisix to let users decide whether the delay time should be strictly in accordance with the configured time

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions