mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 05:11:37 +08:00
fix r3184
This commit is contained in:
parent
cf9dd76b43
commit
4efbd6ab36
@ -398,15 +398,15 @@ ngx_http_limit_req_lookup(ngx_http_limit_req_conf_t *lrcf, ngx_uint_t hash,
|
||||
|
||||
excess = lr->excess - ctx->rate * ngx_abs(ms) / 1000 + 1000;
|
||||
|
||||
if (excess < 0) {
|
||||
excess = 0;
|
||||
}
|
||||
|
||||
if ((ngx_uint_t) excess > lrcf->burst) {
|
||||
*lrp = lr;
|
||||
return NGX_BUSY;
|
||||
}
|
||||
|
||||
if (excess < 0) {
|
||||
excess = 0;
|
||||
}
|
||||
|
||||
lr->excess = excess;
|
||||
lr->last = now;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user