Re: Rate-limiting across connections

2014-11-14 Thread Yichun Zhang (agentzh)
Hello! On Fri, Nov 14, 2014 at 11:31 AM, B.R. wrote: > The limit_rate directive documentation clearly states that it is applied on > a per-request basis. > How would one rate-limit a client over N connections? > It's easy to do if you use ngx_lua module [1] together with the $limit_rate builtin

Rate-limiting across connections

2014-11-14 Thread B.R.
Hello, The limit_rate directive documentation clearly states that it is applied on a per-request basis. How would one rate-limit a client over N connections? 1. Count all N simultaneous connections from a single client 2.