]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: report that a buffer allocation succeeded
authorWilly Tarreau <w@1wt.eu>
Tue, 7 May 2024 15:31:32 +0000 (17:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2024 15:18:13 +0000 (17:18 +0200)
commitf552f79ba5af048dd36a9520c2143187816ffe42
tree4b90e0c8fafc02f241efe30749e21d86638bd614
parentcb2d758043e91d81d00787ab3b95a462e769d037
MINOR: mux-h1: report that a buffer allocation succeeded

When the buffer allocation callback is notified of a buffer availability,
it will now set a MAYALLOC flag in addition to clearing the ALLOC one, for
each of the 3 levels where we may fail an allocation. The flag will be
cleared upon a successful allocation. This will soon be used to decide to
re-allocate without waiting again in the queue. For now it has no effect.

There's just a trick, we need to clear the various *_ALLOC flags before
testing h1_recv_allowed() otherwise it will return false!
include/haproxy/mux_h1-t.h
src/mux_h1.c