]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Don't set CS_FL_EOI too early for protocol upgrade requests
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Dec 2020 17:21:27 +0000 (18:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Dec 2020 14:05:57 +0000 (15:05 +0100)
commit3e1748bbf30bc06407bda36517c00c0b97bfeb50
tree3dd690f3cfb3d6b266f24e23c5538f7dbcb471e8
parentc75668ebff81176f2d3974872af7df4d1decf817
BUG/MINOR: mux-h1: Don't set CS_FL_EOI too early for protocol upgrade requests

When a protocol upgrade request is received, once parsed, it is waiting for
the response in the DONE state. But we must not set the flag CS_FL_EOI
because we don't know if a protocol upgrade will be performed or not.

Now, it is set on the response path, if both sides reached the DONE
state. If a protocol upgrade is finally performed, both side are switched in
TUNNEL state. Thus the CS_FL_EOI flag is not set.

If backported, this patch must be adapted because for now it relies on last
2.4-dev changes. It may be backported as far as 2.0.
src/mux_h1.c