MEDIUM: mux-h2: check the frame validity before considering the stream state
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Jan 2019 14:11:03 +0000 (15:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Jan 2019 18:37:20 +0000 (19:37 +0100)
commit54f46e53dddf465713218fdbe342a4cb7d806ae1
tree0207945c87df509d8e7389730366b894b92e1077
parent9c84d8299a733bf9bb979cd147e9c566f9e1ae67
MEDIUM: mux-h2: check the frame validity before considering the stream state

There are some uneasy situation where it's difficult to validate a frame's
format without being in an appropriate state. This patch makes sure that
each frame passes through h2_frame_check() before being checked in the
context of the stream's state. This makes sure we can always return a GOAWAY
for protocol violations even if we can't process the frame.
src/mux_h2.c