]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compression: always create the compression pool
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 13:44:03 +0000 (14:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 13:46:55 +0000 (14:46 +0100)
commite548974ca8c1957c583912e9f353ab8fc59f41d8
treea4b7c4c4f127ead15efd480c3c30211590b855d5
parent3bfcd10218f96acfdbbf17a898df07703b73e06d
MINOR: compression: always create the compression pool

Surprisingly, the compression pool was created at runtime on first use,
which is not very convenient, has performance and reliability impacts,
and even makes monitoring less easy. Let's move the pool creation at
startup time instead. This even removes the need for the spinlock in
case USE_ZLIB is not defined.
src/compression.c