Re: ngx.shared_dict.get_keys usage

2014-08-05 Thread Suraj Kumar
On Wed, Aug 6, 2014 at 12:14 PM, Suraj Kumar wrote: > When I do dict.get_keys(100), I see the following error in nginx error.log: > Never mind. I figured one must do dict:get_keys() and not dict.get_keys() That makes my first question and my first answer on this list on the same

ngx.shared_dict.get_keys usage

2014-08-05 Thread Suraj Kumar
Hi, I'm trying to use the lua module in combination with ngx.shared.DICT feature to record some statistics for nginx (and upstreams') health monitoring. When I do dict.get_keys(100), I see the following error in nginx error.log: 2014/08/06 06:27:55 [error] 13446#0: *1 lua entry thread aborted: r