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

Lua library for limiting and controlling traffic in OpenResty/ngx_lua

Results 34 lua-resty-limit-traffic issues
Sort by recently updated
recently updated
newest added

Hello, I have a question about limit_conn, the description said that it can "limit request concurrency (or concurrent connections)", but after I read the source code, I think it can...

2018/04/08 00:17:58 [error] 1176#1176: *9 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/limit/count.lua:53: attempt to call method 'expire' (a nil value) stack traceback: coroutine 0: /usr/local/openresty/lualib/resty/limit/count.lua: in function 'incoming' /usr/local/openresty/lualib/resty/limit/traffic.lua:26: in...

hello @agentzh, I have a question about how to add information about the rate limits and their current status. I know many services such as GitHub, Twitter, and Discord return...

I want to use this module for rate-limiting incoming requests per minute. This module has rate-limiting per second. how can I limit incoming requests based on 3 requests per minute(With...

Just as commit states - this change allows devs to set exptime for limiter kv-pairs. closes #8

Hi, thanks for the great work! One example of the use of ssl_certificate_by_lua_{file,block} is request limiting with this library. But in the ssl_certificate_by_lua_* code there is no ngx.ctx available, which...

by keeping track of requests that were made instead of remaining ones it is possible to change the limit on the fly and share one counter between several count limiters...

This PR have been discussed at https://github.com/openresty/lua-resty-limit-traffic/pull/26. This module provides APIs to help the OpenResty/ngx_lua user programmers limit request rate using the "[token bucket](https://en.wikipedia.org/wiki/Token_bucket)" method. Small differences with existing modules,...