lua-resty-limit-traffic icon indicating copy to clipboard operation
lua-resty-limit-traffic copied to clipboard

malfunction for sample code in random case

Open junos opened this issue 7 years ago • 2 comments

  1. I use this sample code in a nginx reverse proxy settings. https://github.com/openresty/lua-resty-limit-traffic/blob/master/lib/resty/limit/traffic.md#synopsis
  2. Then I use tool like siege to execute command like this: siege -c 1 -r 100 http://mytesturl, in some case the code is working fine. In some case, it keep showing request has been rejected. Then I stopped for some time and try the command again and again, This issue never changed. It can only be recovered to normal state after I restart nginx
  3. It looks like this componment goes to reject state and never come back to accept request state after I constantly send some amount of requests, but it happend randomly not always.
  4. I plan to use this component on production soon, could you possible investage this issue?

junos avatar Oct 13 '16 11:10 junos

We have been using it in production for quite a long time and we've never seen such things ourselves. Please provide a minimal and standalone example with precise steps that we can use to reproduce the issue on our side, thank you. Just do not make us guess :)

agentzh avatar Oct 13 '16 17:10 agentzh

config to reproduce this issue here: https://github.com/openresty/lua-resty-limit-traffic/issues/25

junos avatar Nov 06 '17 17:11 junos