From 92f34653b4b5251198b065156c8fa30338fa4e98 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 2 Nov 2026 21:20:02 +0100 Subject: [PATCH] MINOR: http-act: Add 'no-fail' option on 'wait-for-body' action With this option, the "wait-for-body" action does not return an error at the end of the timeout but continues the message analysis with the body received so far, instead of responding with a 408 "Request Timeout" error to the client on the request side or a 504 "Gateway Timeout" error on the response side. The remaining body bytes, if any, are streamed to the server or to the client once received. --- doc/configuration.txt | 8 ++- include/haproxy/http_ana.h | 2 +- .../http_wait_for_body_no_fail.vtc | 72 +++++++++++++++++++ src/http_act.c | 16 +++-- src/http_ana.c | 9 ++- 5 files changed, 97 insertions(+), 10 deletions(-) create mode 100644 reg-tests/http-messaging/http_wait_for_body_no_fail.vtc diff --git a/doc/configuration.txt b/doc/configuration.txt index bf3a95e48..700fee980 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -17865,7 +17865,7 @@ use-service http-request use-service prometheus-exporter if { path /metrics } -wait-for-body time