]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-fcgi: Introduce flags to deal with connection read/write errors
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Oct 2022 15:51:51 +0000 (17:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Nov 2022 13:33:15 +0000 (14:33 +0100)
commitab79b321d66b941f588351bcde8316324f9cb71b
tree781fa45108d8d0b43e98ef927dae929a120cb173
parent68ee7845cff23532f209071d6e5b87de677cde08
MEDIUM: mux-fcgi: Introduce flags to deal with connection read/write errors

Similarly to the H1 and H2 multiplexers, FCFI_CF_ERR_PENDING is now used to
report an error when we try to send data and FCGI_CF_ERROR to report an
error when we try to read data. In other funcions, we rely on these flags
instead of connection ones. Only FCGI_CF_ERROR is considered as a final
error.  FCGI_CF_ERR_PENDING does not block receive attempt.

In addition, FCGI_CF_EOS flag was added. we rely on it to test if a read0
was received or not.
include/haproxy/mux_fcgi-t.h
src/mux_fcgi.c