]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http_ana: fix typo in http_res_get_intercept_rule
authorAurelien DARRAGON <adarragon@haproxy.com>
Sat, 23 Aug 2025 05:39:19 +0000 (07:39 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 25 Aug 2025 08:59:08 +0000 (10:59 +0200)
HTTP_RULE_RES_YIELD was used where HTTP_RULE_RES_FYIELD should be used.
Hopefully, aside from debug traces, both return values were treated
equally. Let's fix that to prevent confusion and from causing bugs
in the future.

It may be backported in 3.2 with 0846638 ("MEDIUM: stream: interrupt
costly rulesets after too many evaluations") if it easily applies

src/http_ana.c

index ed9b03ec8f5f26600b46625487815a98ba7e5751..da1f6300d5c22800cd2f1dbe8ab6b25fe4f13f0d 100644 (file)
@@ -2979,7 +2979,7 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis
                if (s->rules_bcount++ >= global.tune.max_rules_at_once && !(act_opts & ACT_OPT_FINAL)) {
                        s->current_rule = rule;
                        s->flags |= SF_RULE_FYIELD;
-                       rule_ret = HTTP_RULE_RES_YIELD;
+                       rule_ret = HTTP_RULE_RES_FYIELD;
                        task_wakeup(s->task, TASK_WOKEN_MSG);
                        goto end;
                }