]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINIR: proxy: Match on 429 status when trying to perform a L7 retry
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 30 Aug 2024 10:11:03 +0000 (12:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 30 Aug 2024 10:13:32 +0000 (12:13 +0200)
Support for 429 was recently added to L7 retries (0d142e075 "MINOR: proxy:
Add support of 429-Too-Many-Requests in retry-on status"). But the
l7_status_match() function was not properly updated. The switch statement
must match the 429 status to be able to perform a L7 retry.

This patch must be backported if the commit above is backported. It is
related to #2687.

include/haproxy/proxy.h

index 974c78aea11248728e7b7c3a631395590a385f59..9a93e3afc834a289acf05ea642c7f6f0084c75eb 100644 (file)
@@ -206,6 +206,8 @@ static inline int l7_status_match(struct proxy *p, int status)
                return (p->retry_type & PR_RE_408);
        case 425:
                return (p->retry_type & PR_RE_425);
+       case 429:
+               return (p->retry_type & PR_RE_429);
        case 500:
                return (p->retry_type & PR_RE_500);
        case 501: