mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
fix delay in limit_req
This commit is contained in:
parent
1a26a18f64
commit
fbb262533f
@ -229,7 +229,8 @@ ngx_http_limit_req_handler(ngx_http_request_t *r)
|
||||
|
||||
r->read_event_handler = ngx_http_test_reading;
|
||||
r->write_event_handler = ngx_http_limit_req_delay;
|
||||
ngx_add_timer(r->connection->write, (ngx_msec_t) excess);
|
||||
ngx_add_timer(r->connection->write,
|
||||
(ngx_msec_t) excess * 1000 / ctx->rate);
|
||||
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user