Welcome! Log In Create A New Profile

Advanced

Re: lua possibilities/limitations

agentzh
February 14, 2011 11:32PM
On Tue, Feb 15, 2011 at 7:46 AM, Richard Kearsley
<Richard.Kearsley@m247.com> wrote:
>
> Is there something special with $limit_rate stopping me to set it? Is it a
> string/int issue?
>

Yeah, $limit_rate is a special variable defined in the http core module:

http://wiki.nginx.org/NginxHttpCoreModule#.24limit_rate

For now, ngx_lua's "ngx.var.foo = xxx" assignment does not support
such special variables. This will change in a future release.

I've confirmed for you that replacing $limit_rate with $limit gives
the expected headers :) Not sure if you really want to set $limit_rate
to control transfer limit rate though.

Cheers,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

lua possibilities/limitations

Richard Kearsley February 13, 2011 01:16AM

Re: lua possibilities/limitations

agentzh February 13, 2011 11:12PM

Re: lua possibilities/limitations

agentzh February 13, 2011 11:18PM

Re: lua possibilities/limitations

Eugaia February 14, 2011 05:38AM

RE: lua possibilities/limitations

Richard Kearsley February 14, 2011 06:50PM

Re: lua possibilities/limitations

agentzh February 14, 2011 11:32PM

Re: lua possibilities/limitations

Eugaia February 15, 2011 04:02AM

Re: lua possibilities/limitations

agentzh February 15, 2011 05:50AM

Re: lua possibilities/limitations

agentzh July 04, 2011 05:32AM

RE: lua possibilities/limitations

Richard Kearsley July 04, 2011 08:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
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