BUG/MAJOR: mux-fcgi: Stop sending loop if FCGI stream is blocked for any reason
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 May 2020 13:13:00 +0000 (15:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 May 2020 14:00:55 +0000 (16:00 +0200)
commitfe410d685ad8bce7399e50695098b69aea07e558
tree05bf7dd75f703c30de82d6ce282fd8b419eec9ff
parent2bdcc70fa750545f4df47cd6d55fc28047db570d
BUG/MAJOR: mux-fcgi: Stop sending loop if FCGI stream is blocked for any reason

Because of a typo error in conditions to exit the sending loop, it is possible
to loop infinitely in fcgi_snd_buf() function. Instead of checking the FCGI
stream is not blocked to continue sending data, the FCGI connection is used. So
it is possible to have a stream blocked because there is not enough space in the
mux buffers to copy more data but continue to loop to send more data.

This patch should fix the issue #637. It must be backported to 2.1.
src/mux_fcgi.c