]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dynbuf: add functions to help queue/requeue buffer_wait fields
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2024 17:00:22 +0000 (19:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2024 15:18:13 +0000 (17:18 +0200)
commitd1c2f325a2828febceef1c4efb9b71387299812e
tree8ee2ac71dcc3834c59e1695ec283bfe939592acd
parent72d0dcda8e80b9a7d76a0468fa0a751ded20a7cb
MINOR: dynbuf: add functions to help queue/requeue buffer_wait fields

When failing an allocation we always do the same dance, add the
buffer_wait struct to a list if it's not, and return. Let's just add
dedicated functions to centralize this, this will be useful to implement
a bit more complex logic.

For now they're not used.
include/haproxy/dynbuf-t.h
include/haproxy/dynbuf.h