]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: compression: do not always increment the round counter on allocation failure
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2012 13:57:56 +0000 (14:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2012 14:00:55 +0000 (15:00 +0100)
commit4690985fcac9bb336162412c1e5b0c5e293bf0b1
tree59091b781646f7244ccaecbaec744f921da46654
parent4663577e242944516fd2937f4b9b894d63f55069
BUG: compression: do not always increment the round counter on allocation failure

Zlib (at least 1.2 and 1.3) aborts when it fails to allocate the state, so we
must not count a round on this event. If the state succeeds, then it allocates
all the 4 remaining counters at once.
src/compression.c