]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: Only Report H2C error on read error if demux buffer is empty
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Dec 2023 17:09:25 +0000 (18:09 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Dec 2023 20:15:32 +0000 (21:15 +0100)
commit19fb19976f21a370fb20f528e0e570fd1a300f38
treea94f3b308fd006bc8d73c6c4d79dc075b1193f50
parent5b78cbae770e9debab186c4bbf2b708eb4561007
BUG/MEDIUM: mux-h2: Only Report H2C error on read error if demux buffer is empty

It is similar to the previous fix ("BUG/MEDIUM: mux-h2: Don't report H2C
error on read error if dmux buffer is not empty"), but on receive side. If
the demux buffer is not empty, an error on the TCP connection must not be
immediately reported as an error on the H2 connection. We must be sure to
have tried to demux all data first. Otherwise, messages for one or more
streams may be truncated while all data were already received and are
waiting to be demux.

This patch is part of a series that should fix a bug reported in issue #2388
(#2388#issuecomment-1855735144). Backport instructions will be shipped in
the last commit of the series.
src/mux_h2.c