lua-nginx-module
lua-nginx-module copied to clipboard
issue with ngx.exit
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.
you need to try the latest openresty 1.21.4 to see if the problem still exists?