mirror of
https://github.com/openappsec/attachment.git
synced 2025-12-31 05:39:07 +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
|
local session_data = ctx.session_data
|
||||||
|
|
||||||
if not session_id or not session_data or ctx.session_finalized then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user