]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http-rules: Add a rule result to report internal error
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Dec 2019 11:22:05 +0000 (12:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
Now, when HTTP rules are evaluated, HTTP_RULE_RES_ERROR must be returned when an
internal error is catched. It is a way to make the difference between a bad
request or a bad response and an error during its processing.

include/types/http_ana.h

index 4956d68b2b841c351110f5d95ea75d932b8f0963..dd55eb8816bd29be79e4afa153a64f6366223e54 100644 (file)
@@ -125,6 +125,7 @@ enum rule_result {
        HTTP_RULE_RES_ABRT,      /* abort request, msg already sent (eg: auth) */
        HTTP_RULE_RES_DONE,      /* processing done, stop processing (eg: redirect) */
        HTTP_RULE_RES_BADREQ,    /* bad request */
+       HTTP_RULE_RES_ERROR,     /* Internal error */
 };
 
 /* Legacy version of the HTTP/1 message state, used by the channels, should