]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: make sure request trailers on aborted streams don't break the...
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Jan 2019 10:44:07 +0000 (11:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Jan 2019 18:37:20 +0000 (19:37 +0100)
commit1f035507af2bb5dfba51b844f2c57e5698e5c2e9
treec3a631d33fac32fd495a8f787601605e6ecc185c
parentb860c7375655495939424f29137f4e339fa21db4
BUG/MINOR: mux-h2: make sure request trailers on aborted streams don't break the connection

We used to respond a connection error in case we received a trailers
frame on a closed stream, but it's a problem to do this if the error
was caused by a reset because the sender has not yet received it and
is just a victim of the timing. Thus we must not close the connection
in this case.

This patch may be backported to 1.9 but then it requires the following
previous ones :
   MINOR: h2: add a generic frame checker
   MEDIUM: mux-h2: check the frame validity before considering the stream state
   CLEANUP: mux-h2: remove stream ID and frame length checks from the frame parsers
src/mux_h2.c