]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Report EOS on parsing/internal error for not running stream
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Dec 2022 09:43:11 +0000 (10:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Dec 2022 10:01:26 +0000 (11:01 +0100)
commit75028f83d4329740fa7b718f248b6312f48bc01e
tree39e8c5f40439f2b6d5885ac074859153b87a35f8
parent103966930afded03bf0e94b668f14f5802ec24b5
BUG/MINOR: mux-h1: Report EOS on parsing/internal error for not running stream

When an error occurred during the request parsing while the stream is not
running, an EOS must be reported. It is not an issue for an embryonic
connection because the H1 stream is orphan. However, it is an issue with
connections upgraded from TCP to H1. In this case, the upgrade is not
performed because there is an early error. However the H1 stream is not
orphan and is not destroyed. The H1 multiplexer will wait for the detach
event. But without EOS, the upper layer is unable to perform the shutdown.

This patch is related to #1966. It must be backported to 2.7. Older versions
are not affected by this issue.
src/mux_h1.c