]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Be sure to xfer all headers in one time in htx_xfer_blks()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 16 May 2019 09:30:31 +0000 (11:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
commita61e97bcaeaa9128b27eb31c56850add036290fe
tree40112ebe70f5e12858314d7f4f71d320b6d758eb
parenta39d8ad08641b96f9148e75000057566782effc8
MINOR: htx: Be sure to xfer all headers in one time in htx_xfer_blks()

In the function htx_xfer_blks(), we take care to transfer all headers in one
time. When the current block is a start-line, we check if there is enough space
to transfer all headers too. If not, and if the destination is empty, a parsing
error is reported on the source.

The H2 multiplexer is the only one to use this function. When a parsing error is
reported during the transfer, the flag CS_FL_EOI is also set on the conn_stream.
src/htx.c
src/mux_h2.c