mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-02 14:44:42 +03:00
increase timeout
This commit is contained in:
@@ -255,9 +255,9 @@ function NanoHandler.body_filter(conf)
|
|||||||
ctx.body_filter_start_time = ngx.now() * 1000
|
ctx.body_filter_start_time = ngx.now() * 1000
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check timeout (10 seconds)
|
-- Check timeout (150 seconds)
|
||||||
local elapsed = (ngx.now() * 1000) - ctx.body_filter_start_time
|
local elapsed = (ngx.now() * 1000) - ctx.body_filter_start_time
|
||||||
if elapsed > 10000 then
|
if elapsed > 150000 then
|
||||||
kong.log.err("Timeout after ", elapsed, "ms - cleaning up session")
|
kong.log.err("Timeout after ", elapsed, "ms - cleaning up session")
|
||||||
ngx.arg[1] = nil -- Discard chunk first
|
ngx.arg[1] = nil -- Discard chunk first
|
||||||
ctx.inspection_complete = true
|
ctx.inspection_complete = true
|
||||||
|
|||||||
Reference in New Issue
Block a user