]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: leastconn: Don't try to reposition if the server is down
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 2 Apr 2025 10:40:42 +0000 (10:40 +0000)
committerOlivier Houchard <cognet@ci0.org>
Wed, 2 Apr 2025 10:24:04 +0000 (12:24 +0200)
commitf59297e49250402650088c89e7c79a1d5291b6ac
treeb916a644e45e5e4be230667ce1fca1127c7dc796
parent4ec5509541e29956107011d45c971a9fe3a430f1
BUG/MEDIUM: leastconn: Don't try to reposition if the server is down

It may happen that the server is going down, and fwlc_srv_reposition()
is still called, because streams still attached to the server are
being terminated.
So in fwlc_srv_reposition(), just do nothing if we've been removed from
the tree.

This should fix github issue #2919.

This should not be backported, unless commit
9fe72bba3cf3484577fa1ef00723de08df757996 is also backported.

src/lb_fwlc.c