Welcome! Log In Create A New Profile

Advanced

Re[2]: Поломался limit_req

Aleksander
October 06, 2009 12:24PM
> Патч. Сегодня ещё будет 0.8.19.

> Index: src/http/modules/ngx_http_limit_req_module.c
> ===================================================================
> --- src/http/modules/ngx_http_limit_req_module.c (revision 2508)
> +++ src/http/modules/ngx_http_limit_req_module.c (working copy)
> @@ -398,15 +398,15 @@
>
> 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;

Обновился, спасибо. Так работает.
Subject Author Posted

Поломался limit_req

Aleksander October 06, 2009 11:48AM

Re: Поломался limit_req Attachments

Igor Sysoev October 06, 2009 11:58AM

Re[2]: Поломался limit_req

Aleksander October 06, 2009 12:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready