]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-fcgi: Don't request more room if mux is waiting for more data
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 May 2023 09:33:05 +0000 (11:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 May 2023 13:37:04 +0000 (15:37 +0200)
commitefebff35bb958ba72850323696f88b2b4f6592f4
tree524951f123cf10a09d5f16fa657c42e4db99c5d1
parenta272c39330f729e37a5e2b9447d421bfa12c2d92
BUG/MEDIUM: mux-fcgi: Don't request more room if mux is waiting for more data

A mux must never report it is waiting for room in the channel buffer if this
buffer is empty. Because there is nothing the application layer can do to
unblock the situation. Indeed, when this happens, it means the mux is
waiting for data to progress. It typically happens when all headers are not
received.

In the FCGI mux, if some data remain in the RX buffer but the channel buffer
is empty, it does no longer report it is waiting for room.

This patch should fix the issue #2150. It must be backported as far as 2.6.
src/mux_fcgi.c