Hello!
2013/9/16 kobe zhang:
> 我这边需要异步的使用ngx.capture.location 发送新的请求,但是ngx_lua的文档中说,在ngx.time.at
> 中无法使用ngx.capture.location 类似的指令,请问春哥这样的问题如何解决
>
很简单:避免在 timer 回调中使用 nginx 子请求进行后端访问,而使用那些基于 cosocket API 的 lua-resty-*
库,比如 lua-resty-redis 和 lua-resty-mysql.
nginx 子请求本来就有很多的限制。
Regards,
-agentzh