]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: mark end-of-stream after processing response HEADERS, not before
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 08:32:20 +0000 (09:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 08:34:19 +0000 (09:34 +0100)
commit45ffc0ca347c523671a16698a147b819291dae01
tree3370d5563f2809945edcdc210ca103edaa800852
parentc1fc95f850cb9668e6517ca3755808544e931b9f
BUG/MINOR: mux-h2: mark end-of-stream after processing response HEADERS, not before

When dealing with a server's H2 response, we used to set the
end-of-stream flag on the conn_stream and the stream before parsing
the response, which is incorrect since we can fail to process this
response by lack of room, buffer or anything. The extend of this problem
is still limited to a few rare cases, but with trailers it will cause a
systematic failure.

This fix must be backported to 1.9.
src/mux_h2.c