lua possibilities/limitations

agentzh agentzh at gmail.com
Tue Feb 15 07:27:57 MSK 2011


On Tue, Feb 15, 2011 at 7:46 AM, Richard Kearsley
<Richard.Kearsley at 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



More information about the nginx mailing list