]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-fcgi: Add a function to propagate termination flags from fstrm to SE
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Feb 2025 13:28:47 +0000 (14:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 10:19:32 +0000 (11:19 +0100)
commitccdca4bb77f49b031ebf356c1d706fd43677799b
treeb5c2b0f27e4a6b525ee704b5f6ec416fbdb0c883
parent7b638eb1a6fb8ce4148f075141d49ed7a55dcfd7
MEDIUM: mux-fcgi: Add a function to propagate termination flags from fstrm to SE

The function fcgi_strm_propagate_term_flags() was added to check the FSTRM
state and evaluate when EOI/EOS/ERR_PENDING/ERROR flags must be set on the
SE. It is not the only place where those flags are set. But it centralizes
the synchro between the FCGI stream and the SC.

For now, this function is only used at the end of fcgi_rcv_buf(). But it
will be used to fix a potential bug.
src/mux_fcgi.c