]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: ensure connection cleanup on server addr changes
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 11 Dec 2023 08:15:11 +0000 (09:15 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Dec 2023 13:22:26 +0000 (14:22 +0100)
commit2e3a163e47fa26c497c5e0eca7c1912381e3ca0c
tree288995b19e536e564b0fb732ede8c6e5a3af5efc
parent545e72546c0d729fd3de0f753adc905dd0b13908
MINOR: server: ensure connection cleanup on server addr changes

Previously, in srv_update_addr_port(), we forced connection cleanup on
server changes.
This was done in 6318d33ce ("BUG/MEDIUM: connections: force connections
cleanup on server changes").

However, there is no reason we shouldn't have done the same in
srv_update_addr() function, because the end goal is the same: perform
runtime changes on server's address.

The purge_conn hint propagated through the INETADDR server event was
simply there to keep the original behavior (only purge the connection
for events originating from srv_update_addr_port()), but to ensure the
address change is handled the same way for both code paths, we simply
ignore this hint.
src/server.c