]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: bwlim: Use a read-lock on the sticky session to apply a shared limit
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Aug 2024 08:04:42 +0000 (10:04 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 2 Sep 2024 13:50:25 +0000 (15:50 +0200)
commitf9adcdf039369cd9ae71023ccbb9c9a72993e454
tree7a9441d079d17de60b7b059f7425c7674eb116b7
parenta7f6b0ac03618b8edea895bd58df27501ce710aa
MEDIUM: bwlim: Use a read-lock on the sticky session to apply a shared limit

There is no reason to acquire a write-lock on the sticky session when a
shared limit is applied because only the frequency is updated. The sticky
session itself is not modified. We must just take care it is not removed in
the mean time. So a read-lock may be used instead.
src/flt_bwlim.c