]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Fix conn_mode processing for headerless outgoing messages
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 10 Dec 2018 10:21:47 +0000 (11:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2018 19:49:12 +0000 (20:49 +0100)
commitde68b1351f515559ca561e2d49beca3b1fdd163e
treed5bf78f8b9fca1207b8ded53314ef1747b50e6b6
parentac77b6f4411aa9438693f80ead8fd183f339dba7
BUG/MINOR: mux-h1: Fix conn_mode processing for headerless outgoing messages

Condition to process the connection mode on outgoing messages whithout
'Connection' header was wrong. It relied on the wrong H1M
state. H1_MSG_HDR_L2_LWS is only a possible state for messages with at least one
header. Now, to fix the bug, we just check the H1M state is not
H1_MSG_LAST_LF. So, we have the warranty the EOH was not processed yet.
src/mux_h1.c