]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: queue: make sure that maintenance redispatches server queue
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Sep 2024 16:54:07 +0000 (18:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Sep 2024 16:54:07 +0000 (18:54 +0200)
commit1385e33eb089093dbc970dbc2759d2969ae533c5
treee914935c5fe7bd846360ccb69219c2a0d79e4b4a
parenta4d04c649af448cf2a728ebb91837ed69eea6217
BUG/MINOR: queue: make sure that maintenance redispatches server queue

Turning a server to maintenance currently doesn't redispatch the server
queue unless there's an explicit "option redispatch" and no "option
persist", while the former has never really been the purpose of this
test. Better refine this so that forced maintenance also causes the
queue to be flushed, and possibly redispatched unless the proxy has
option persist. This way now when turning a server to maintenance,
the queue is immediately flushed and streams can decide what to do.

This can be backported, though there's no need to go far since it was
never directly reported and only noticed as part of debugging some
rare "shutdown sessions" strangeness, which it might participate to.
src/queue.c