]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: resolvers: Remove duplicated line when resolvers proxy is initialized
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 06:29:21 +0000 (08:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 14:33:56 +0000 (16:33 +0200)
In resolvers_setup_proxy(), "px->conn_retries" was initialized twice. Let's
remove the line with no comment.

src/resolvers.c

index c4bdf39bd15bf36c94c10226b9b14c1388e2d1df..a151f60342bab4f171ba1fc4380b2e4aa79ab233 100644 (file)
@@ -3417,7 +3417,6 @@ int check_action_do_resolve(struct act_rule *rule, struct proxy *px, char **err)
 void resolvers_setup_proxy(struct proxy *px)
 {
        px->maxconn = 0;
-       px->conn_retries = 1;
        px->conn_retries = 1; /* FIXME ignored since 91e785ed
                               * ("MINOR: stream: Rely on a per-stream max connection retries value")
                               * If this is really expected this should be set on the stream directly