lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

issue with ngx.exit

Open tweyseo opened this issue 2 years ago • 1 comments

os: Red Hat Enterprise Linux Server release 7.3 openresy: 1.17.8.2 ngx_lua: 0.10.17 as the document said: "When status >= 200 (i.e., ngx.HTTP_OK and above), it will interrupt the execution of the current request and return status code to Nginx.", but i use return ngx.exit(500) in content_by_lua* but the request still run header_filter, body_filter and log phase. and i took a quick look at the source code of ngx_lua, i found the flag exited set in ngx_http_lua_ffi_exit was less used.

tweyseo avatar Apr 10 '23 05:04 tweyseo

you need to try the latest openresty 1.21.4 to see if the problem still exists?

zhuizhuhaomeng avatar Apr 10 '23 07:04 zhuizhuhaomeng