Thanks! The description of dangerous usage in the docs is clear.
Just to be sure, can you confirm that the usage example I initially noted is safe? Since it localizes ngx.ctx inside individual handlers but does not share it with the whole worker.
> On Jan 7, 2016, at 10:18, Yichun Zhang (agentzh) <age...@gmail.com> wrote:
>
> Hello!
>
>> On Wed, Jan 6, 2016 at 6:52 PM, Robert Paprocki wrote:
>> The documentation of ngx.ctx contains the following:
>>
>> "And because of the metamethod magic, never "local" the ngx.ctx table
>> outside your function scope."
>>
>> Can someone provide clarification on this? The language is a bit unclear to
>> me; what qualifies as "localizing the ngx.ctx table outside your function
>> scope"?
>
> Yeah, that statement is quite vague. I've updated to docs to make it clearer:
>
> https://github.com/openresty/lua-nginx-module#ngxctx
>
> Please let me know if you have any further questions.
>
> Regards,
> -agentzh.