]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: threads/map: Make acls/maps thread safe
authorEmeric Brun <ebrun@haproxy.com>
Mon, 3 Jul 2017 09:34:05 +0000 (11:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:32 +0000 (13:58 +0100)
commitb5997f740b21ebb197e10a0f2fe9dc13163e1772
treef572aaa4f51e1684223cb2fc11f7c5c0da7c5c8e
parent8ba59148aec9992943907a137688e8397da2edfa
MAJOR: threads/map: Make acls/maps thread safe

locks have been added in pat_ref and pattern_expr structures to protect all
accesses to an instance of on of them. Moreover, a global lock has been added to
protect the LRU cache used for pattern matching.

Patterns are now duplicated after a successfull matching, to avoid modification
by other threads when the result is used.

Finally, the function reloading a pattern list has been modified to be
thread-safe.
include/common/hathreads.h
include/types/pattern.h
src/map.c
src/pattern.c
src/proto_http.c