Added limit_rate_after as variable

Maxim Dounin mdounin at mdounin.ru
Thu Jul 26 13:36:07 UTC 2018


Hello!

On Thu, Jul 26, 2018 at 09:16:38AM +0200, Miroslav Novy wrote:

> # HG changeset patch
> # User Miroslav Nový <miranovy at gmail.com>
> # Date 1532521218 0
> #      Wed Jul 25 12:20:18 2018 +0000
> # Node ID f5da29b630f779ab294cc7ff78213a175976424c
> # Parent  f7e79596baf209151682f2f7d220161c034657ac
> Added limit_rate_after as variable
> 
> diff -r f7e79596baf2 -r f5da29b630f7 src/http/ngx_http_variables.c
> --- a/src/http/ngx_http_variables.c Tue Jul 24 18:46:54 2018 +0300
> +++ b/src/http/ngx_http_variables.c Wed Jul 25 12:20:18 2018 +0000
> @@ -326,6 +326,11 @@
>        offsetof(ngx_http_request_t, limit_rate),
>        NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },
> 
> +    { ngx_string("limit_rate_after"), ngx_http_variable_request_set_size,
> +      ngx_http_variable_request_get_size,
> +      offsetof(ngx_http_request_t, limit_rate_after),
> +      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },
> +
>      { ngx_string("connection"), NULL,
>        ngx_http_variable_connection, 0, 0, 0 },

https://trac.nginx.org/nginx/ticket/293#comment:5

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list