]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tree-wide: Change sc API to specify required free space to progress
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 09:28:45 +0000 (11:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 13:44:23 +0000 (15:44 +0200)
commit7b3d38a633e4c5975c1b60afceb1e8fcb2111b76
tree1be7558eb1c4e2e534303102a1a2630a2b75cfe6
parent9aed1124edffdf314a352b265811da4adfb21394
MEDIUM: tree-wide: Change sc API to specify required free space to progress

sc_need_room() now takes the required free space to receive more data as
parameter. All calls to this function are updated accordingly. For now, this
value is set but not used. When we are waiting for a buffer, 0 is used. So
we expect to be unblocked ASAP. However this must be reviewed because
SC_FL_NEED_BUF is probably enough in this case and this flag is already set
if the input buffer allocation fails.
14 files changed:
addons/promex/service-prometheus.c
include/haproxy/applet.h
include/haproxy/stconn.h
src/cache.c
src/cli.c
src/dns.c
src/flt_spoe.c
src/hlua.c
src/http_client.c
src/peers.c
src/proxy.c
src/resolvers.c
src/stats.c
src/stconn.c