nginx, echo module & lua

Pierre serarien at
Wed May 2 08:11:31 UTC 2012

Hi all,

I'm trying to use both echo module & lua, but I'm having some issues:

1. I reach quickly "subrequests cycle". Looking @ the code, subrequests 
is unsigned:8,
but I would need thousands of subrequests sometimes. putting 
subrequests to unsigned just
results to crashes.

2. when in config: set_by_lua_file $varname luafile.lua , and 
luafile.lua references to ngx.ctx,
I get the following error:
(lua-error) request ctx found
according to the doc, ngx.ctx is available in set_lua*, but does not 
work. Would anybody suggest
me a workaround ?

I'm using luajit, openresty last version.

Thanks a lot in advance,

More information about the nginx mailing list