ngx.arg[1] = nil

This commit is contained in:
wiaamm
2025-12-06 21:42:13 +02:00
parent 489f49b7c7
commit ca879543c5

View File

@@ -238,6 +238,9 @@ function NanoHandler.body_filter(conf)
local session_data = ctx.session_data
if not session_id or not session_data or ctx.session_finalized then
-- Clear the chunk to release it from memory immediately
-- Without this, Kong holds chunks in memory causing OOM
ngx.arg[1] = nil
return
end