BUG/MINOR: mux-fcgi: Set flags on the right stream field for empty FCGI_STDOUT
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Jul 2020 14:04:49 +0000 (16:04 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Jul 2020 08:28:03 +0000 (10:28 +0200)
commit37daeffac123f8a0f33d929060f07a75add91b30
tree77436be87848f23bf2c2741c0d64567f6147887f
parentea7ba0f4b8c8fc852aa1ae253d1927e8dc456d01
BUG/MINOR: mux-fcgi: Set flags on the right stream field for empty FCGI_STDOUT

In fcgi_strm_handle_empty_stdout(), the FCGI_SF_ES_RCVD flag is set on "->state"
stream field instead of "->flags". It is obviously wrong. This bug is not
noticeable because the right state is set in the fcgi_process_demux() function a
bit later.

This patch must be backported as far as 2.1.

(cherry picked from commit 3b3096ede1b52007fa49a563436df8ee9323d78c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit ca5e8c058e157ee7d549014705e23e3be6fc505c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_fcgi.c