]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dynbuf: set POOL_F_NO_FAIL on buffer allocation
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Mar 2023 08:15:13 +0000 (09:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Mar 2023 08:15:13 +0000 (09:15 +0100)
commit69869e63545068761e1ebefbc80ec39399ce1104
treeee08dcdb16ef14543156ee25aed2d3d3078bc6d4
parent7a8ca0a0633e120c5b82de81f03c31cc39a17cb1
MINOR: dynbuf: set POOL_F_NO_FAIL on buffer allocation

b_alloc() is used to allocate a buffer. We can provoke fault injection
based on forced memory allocation failures using -dMfail on the command
line, but we know that the buffer_wait list is a bit weak and doesn't
always recover well. As such, submitting buffer allocation to such a
treatment seriously limits the usefulness of -dMfail which cannot really
be used for other purposes. Let's just disable it for buffers for now.
include/haproxy/dynbuf.h