]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: session: close new idle conns if server in maintenance
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Aug 2025 16:42:50 +0000 (18:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Aug 2025 12:55:21 +0000 (14:55 +0200)
commitfa1a168bf16ad8926775478bde8819efb4b8502a
tree022fb081c498700333318bbbc966f01b0bed1394
parent67df6577ffec65b4fd24b06dbe8f5f5206b0676b
MEDIUM: session: close new idle conns if server in maintenance

Previous patch ensures that a backend connection going into idle state
is rejected and freed if its target server is in maintenance.

This patch introduces a similar change for connections attached in the
session. session_check_idle_conn() now returns an errorl if connection
target server is in maintenance, similarly to session max idle conns
limit reached. This is sufficient to instruct muxes to delete the
connection immediately.
src/session.c