Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_limit_req_module.c @ 3525:eb156d98a9fa
fix delay in limit_req
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 24 May 2010 07:43:39 +0000 |
parents | 30f841e2536d |
children | 57aecfdcac3d |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_limit_req_module.c +++ b/src/http/modules/ngx_http_limit_req_module.c @@ -229,7 +229,8 @@ ngx_http_limit_req_handler(ngx_http_requ 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; }