]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mxu-h1: Report a parsing error on abort with pending data
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Mar 2023 15:04:23 +0000 (16:04 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Mar 2023 16:35:16 +0000 (17:35 +0100)
commit91ff70954204f73b2e901b765bc5d7fd1dc2ce56
tree0f56e7d1c62a3190e1e5d9d87ba887af5339a176
parentc2fba3f77f1f0212f5d5c206add169bd2fd2494e
BUG/MINOR: mxu-h1: Report a parsing error on abort with pending data

When an abort is detected before all headers were received, and if there are
pending incoming data, we must report a parsing error instead of a
connection abort. This way it will be able to be handled as an invalid
message by HTTP analyzers instead of an early abort with no message.

It is especially important to be accurate on L7 retry. Indeed, without this
fix, this case will be handle by the "empty-response" retries policy while a
retry on "junk-response" is more accurate.

This patch must be backported to 2.7.
src/mux_h1.c