mirror of
https://github.com/nginx/nginx.git
synced 2026-10-25 07:07:42 -05:00
fix delay in limit_req
This commit is contained in:
1 parent
1a26a18f64
commit
fbb262533f
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user