]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: threads/server: Make connection list (priv/idle/safe) thread-safe
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 3 Jul 2017 13:41:01 +0000 (15:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:30 +0000 (13:58 +0100)
commit40a007cf2a387bc2c4257840bafc54290297cbf9
tree8ddebea14cc3d5257c9d839ef24ba47f7436d853
parentff8abcd31d390c5bc3b72c8acf991144c91c28ef
MEDIUM: threads/server: Make connection list (priv/idle/safe) thread-safe

For now, we have a list of each type per thread. So there is no need to lock
them. This is the easiest solution for now, but not the best one because there
is no sharing between threads. An idle connection on a thread will not be able
be used by a stream on another thread. So it could be a good idea to rework this
patch later.
include/types/server.h
src/backend.c
src/hlua.c
src/proto_http.c
src/server.c