From 77a31c3842a5e70c2ff90607b7ecd9bd32b50e4f Mon Sep 17 00:00:00 2001 From: wiaamm Date: Wed, 3 Dec 2025 01:01:16 +0200 Subject: [PATCH] increase timeout --- .../kong/plugins/open-appsec-waf-kong-plugin/handler.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua b/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua index 7eeb90d..abf744f 100755 --- a/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua +++ b/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua @@ -255,9 +255,9 @@ function NanoHandler.body_filter(conf) ctx.body_filter_start_time = ngx.now() * 1000 end - -- Check timeout (10 seconds) + -- Check timeout (150 seconds) 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") ngx.arg[1] = nil -- Discard chunk first ctx.inspection_complete = true