REGTEST: Add an HTX reg-test to check an edge case
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Dec 2019 15:26:11 +0000 (16:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Dec 2019 15:46:16 +0000 (16:46 +0100)
commit1eee6ca89e7041f74132383a254b80991649bcea
treead4d3bbc91a99c9ddba7277dbb2caed4fcba41a4
parent29f72843334ebb475c8e21e865cdc4b90abf3b6f
REGTEST: Add an HTX reg-test to check an edge case

This test checks that an HTTP message is properly processed when we failed to
add the HTX EOM block in an HTX message during the parsing because the buffer is
full. Some space must be released in the buffer to make it possible. This
requires an extra pass in the H1 multiplexer. Here, we must be sure the mux is
called while there is no more incoming data.

It is a "devel" test because conditions to run the test successfully is highly
dependent on the implementation. So if it fail, it is not necessarily a bug. It
may be due of an internal change. It relies on internal HTX sample fetches.
reg-tests/http-messaging/http_msg_full_on_eom.vtc [new file with mode: 0644]
scripts/run-regtests.sh