]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stconn: use a single function to know if SC may send to SE
authorWilly Tarreau <w@1wt.eu>
Tue, 24 May 2022 06:49:24 +0000 (08:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 May 2022 17:33:34 +0000 (19:33 +0200)
commit902ba7e2bc25c1426d34bf3ec2441d751db9df95
tree2ce36545b85a114941752f9a9c089fba5ff8bc2c
parent6001c9217cac5f065261cf818b835f772fcc39e7
CLEANUP: stconn: use a single function to know if SC may send to SE

sc_is_send_allowed() is now used everywhere instead of the combination
of cs_tx_endp_ready() && !cs_tx_blocked(). There's no place where we
need them individually thus it's simpler. The test was placed in cs_util
as we'll complete it later.
include/haproxy/cs_utils.h
src/applet.c
src/conn_stream.c
src/stream.c