BUG/MEDIUM: mux-h2: Don't report error on SE if error is only pending on H2C
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Dec 2023 17:19:33 +0000 (18:19 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Dec 2023 20:15:32 +0000 (21:15 +0100)
commit580ffd612348975cf3390ba5b3603c99046c848a
tree6b6685561deddbb137ad23e7d1c1afb152458f04
parent19fb19976f21a370fb20f528e0e570fd1a300f38
BUG/MEDIUM: mux-h2: Don't report error on SE if error is only pending on H2C

In h2s_wake_one_stream(), we must not report an error on the stream-endpoint
descriptor if the error is not definitive on the H2 connection. A pending
error on the H2 connection means there are potentially remaining data to be
demux. It is important to not truncate a message for a stream.

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