mirror of
https://github.com/openappsec/attachment.git
synced 2025-06-28 16:41:03 +03:00
Merge pull request #4 from openappsec/Mar_26_2023-Dev
Mar 26th 2023 Dev
This commit is contained in:
commit
aa138e034c
@ -550,12 +550,15 @@ ngx_http_cp_req_body_filter(ngx_http_request_t *request, ngx_chain_t *request_bo
|
||||
req_body_thread_timeout_msec,
|
||||
"ngx_http_cp_req_body_filter_thread"
|
||||
);
|
||||
if (!res) {
|
||||
if (!res || ctx.res == NGX_ERROR) {
|
||||
// failed to execute thread task, or it timed out
|
||||
session_data_p->verdict = fail_mode_verdict == NGX_OK ? TRAFFIC_VERDICT_ACCEPT : TRAFFIC_VERDICT_DROP;
|
||||
write_dbg(
|
||||
DBG_LEVEL_DEBUG,
|
||||
"req_body_filter thread failed, returning default fail mode verdict. Session id: %d, verdict: %s",
|
||||
"req_body_filter thread failed, returning default fail mode verdict. "
|
||||
"thread execution result: %d, nano service reply: %d, Session id: %d, verdict: %s",
|
||||
res,
|
||||
ctx.res,
|
||||
session_data_p->session_id,
|
||||
session_data_p->verdict == TRAFFIC_VERDICT_ACCEPT ? "accept" : "drop"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user