用pcall(f, arg)的方式来处理抛出的异常,在本地环境(openresty)可以,但在测试环境(自行编的nginx with lua)就不行,nginx worker会crash,nginx log如下:.
確定! 回上一頁