zuiyangqingzhou opened a new issue #4583:
URL: https://github.com/apache/apisix/issues/4583


   ### 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?
   
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
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]


Reply via email to