]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: Handle h1_process() failures on a pipelined request
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Dec 2020 14:13:47 +0000 (15:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Dec 2020 14:13:58 +0000 (15:13 +0100)
commit0c366a87619206d1bf1c9f69698933d0e58b7be5
treec14a5a3cac3741ee6d75a78c4ddaf8661fb725c8
parentfac0f8f029cc16f7b12ea8035c2327ac194d40e7
BUG/MEDIUM: mux-h1: Handle h1_process() failures on a pipelined request

On frontend side, when a conn-stream is detached from a H1 connection, the
H1 stream is destroyed and if we already have some data to parse (a
pipelined request), we process these data immedialtely calling
h1_process(). Then we adjust the H1 connection timeout. But h1_process() may
fail and release the H1 connection. For instance, a parsing error may be
reported. Thus, when that happens, we must not use anymore the H1 connection
and exit.

This patch must be backported as far as the 2.2. This bug can impact the 2.3
and the 2.2, in theory, if h1 stream creation fails. But, concretly, it only
fails on the 2.4 because the requests are now parsed at this step.
src/mux_h1.c