]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: set the stream-full flag when leaving h2c_decode_headers()
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 07:52:09 +0000 (08:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 08:28:59 +0000 (09:28 +0100)
commit8dbb1705fda5ce5e090738350c54d44c411d86ff
tree978f9b35cf7a42eb5898043a5bb7cbff55b3c8e0
parent872e2fac397cf931f237ae9c6ad3c56ec105f417
BUG/MINOR: mux-h2: set the stream-full flag when leaving h2c_decode_headers()

If we exit this function because some data are pending in the rxbuf, we
currently don't indicate any blocking flag, which will prevent the operation
from being attempted again. Let's set H2_CF_DEM_SFULL in this case to indicate
there's not enough room in the stream buffer so that the operation may be
attempted again once we make room. It seems that this issue cannot be
triggered right now but it definitely will with trailers.

This fix should be backported to 1.9 for completeness.
src/mux_h2.c