apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: limit-conn

Open LY-GO opened this issue 6 years ago • 6 comments

Issue description

I had test the plugin of limit-conn.I found the question that the same ip only request the router by five times when conn is 5 and key is remote_addr, and i don't request the router next time.Why so that?

Environment

  • apisix version (cmd: apisix version):
  • OS:

Minimal test code / Steps to reproduce the issue

Plugin limit-conn Edit conn=5 rejected_code=503 burst=0 key=remote_addr default_conn_delay=0

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

same user only visit the router with the config

What's the expected result?

i hope that the plugin only limit concurrency,and different users also continue to request the router when user request the service after first .

LY-GO avatar Oct 17 '20 08:10 LY-GO

i hope that the plugin only limit concurrency,and different users also continue to request the router when user request the service after first .

What is the difference between different users? The client's IP address or other things? Please confirm this first.

and please provide a mini case which we can reproduce your bug.

membphis avatar Oct 17 '20 14:10 membphis

i hope that the plugin only limit concurrency,and different users also continue to request the router when user request the service after first .

What is the difference between different users? The client's IP address or other things? Please confirm this first.

and please provide a mini case which we can reproduce your bug.

one questions: you had said the request would been allowed when concurrence declines.When i test the plugin of limit-conn,even through i decline the conn,the request still is unsuccess. this is a bug ?

LY-GO avatar Oct 19 '20 01:10 LY-GO

I think you should provide a complete case, we need to know more detailed step information.

Mainly two questions:

  1. What is the route data?
  2. What is your test method?

membphis avatar Oct 19 '20 01:10 membphis

I think you should provide a complete case, we need to know more detailed step information.

Mainly two questions:

  1. What is the route data?
  2. What is your test method? router-data router-data2 plugin 2.i use the jmeter to test plugin

LY-GO avatar Oct 19 '20 02:10 LY-GO

let me confirm it

membphis avatar Oct 19 '20 07:10 membphis

that is a bug, fix it soon

membphis avatar Oct 19 '20 07:10 membphis