From: Olivier Houchard Date: Tue, 4 Nov 2025 17:37:20 +0000 (+0100) Subject: BUG/MEDIUM: server: Also call srv_reset_path_parameters() on srv up X-Git-Tag: v3.3-dev12~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06821dc1897c48555dc9047ca534060cfa99440d;p=thirdparty%2Fhaproxy.git 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. --- 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);