]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: fwlc: Make it so fwlc_srv_reposition works with unqueued srv
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 1 Oct 2025 15:59:37 +0000 (17:59 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 1 Oct 2025 16:13:33 +0000 (18:13 +0200)
commitf4a9c6ffae6d914dd7cd00ab0fa9d84be0fe9db6
tree711861654a908ffe28f18a695b677adfcf4d7d53
parent822ee90dc2b5910a88948053ffa21b4caab53d28
MEDIUM: fwlc: Make it so fwlc_srv_reposition works with unqueued srv

Modify fwlc_srv_reposition() so that it does not assume that the server
was already queued, and so make it so it works even if s->tree_elt is
NULL.
While the server will usually be queued, there is an unlikely
possibility that when the server attempted to get queued when it got up,
it failed due to a memory allocation failure, and it just expect the
server_requeue tasklet to run to take care of that later.

This should be backported to 3.2.
This is part of an attempt to fix github issue #3143
src/lb_fwlc.c