]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: server: Add a rwlock to path parameter
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 4 Nov 2025 15:46:50 +0000 (16:46 +0100)
committerOlivier Houchard <cognet@ci0.org>
Tue, 4 Nov 2025 17:47:34 +0000 (18:47 +0100)
commit7d4aa7b22bdb0c414c6efdcd84c5c4d317c620dd
tree027f236ba401d70e825fb4ccb4439987e2f4f724
parentefe60745b351a076799ea4af048199efbdb6006c
BUG/MEDIUM: server: Add a rwlock to path parameter

Add a rwlock to control the server's path_parameter, to make sure
multiple threads don't set it at the same time, and it can't be seen in
an inconsistent state.
Also don't set the parameter every time, only set them if they have
changed, to prevent needless writes.

This does not need to be backported.
include/haproxy/server-t.h
src/backend.c
src/server.c
src/ssl_sock.c