mirror of
https://github.com/openappsec/attachment.git
synced 2025-12-31 13:49:09 +03:00
ngx.arg[1] = nil
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user