diff --git a/lib/resty/logger/socket.lua b/lib/resty/logger/socket.lua index 0ef8bef..fc0cc0e 100644 --- a/lib/resty/logger/socket.lua +++ b/lib/resty/logger/socket.lua @@ -29,7 +29,7 @@ local _M = new_tab(0, 5) local is_exiting if not ngx.config or not ngx.config.ngx_lua_version - or ngx.config.ngx_lua_version < 9003 then + or (ngx.config.subsystem ~= "stream" and ngx.config.ngx_lua_version < 9003) then is_exiting = function() return false end