From 06821dc1897c48555dc9047ca534060cfa99440d Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 4 Nov 2025 18:37:20 +0100 Subject: [PATCH] BUG/MEDIUM: server: Also call srv_reset_path_parameters() on srv up Also call srv_reset_path_parameters() when the server changed states, and got up. It is not enough to do it when the server goes down, because there's a small race condition, and a connection could get established just after we did it, and could have set the path parameters. This does not need to be backported. --- src/server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.c b/src/server.c index 7812a22d0..a15156601 100644 --- a/src/server.c +++ b/src/server.c @@ -6728,6 +6728,7 @@ static int _srv_update_status_op(struct server *s, enum srv_op_st_chg_cause caus if (s->next_state == SRV_ST_STARTING && s->warmup) task_schedule(s->warmup, tick_add(now_ms, MS_TO_TICKS(MAX(1000, s->slowstart / 20)))); + srv_reset_path_parameters(s); server_recalc_eweight(s, 0); /* now propagate the status change to any LB algorithms */ srv_lb_propagate(s);