]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Use configured error files if possible for early H1 errors
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Jul 2025 08:10:37 +0000 (10:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Jul 2025 08:29:49 +0000 (10:29 +0200)
commitd252ec2beb2363bcc145fb0e88302bb929a3a15a
treeb538c83999a6a8ca64e52f450ec377eae666c3e0
parent187ae28cf41bc60074d6d80304f625fd52c7030a
BUG/MINOR: mux-h1: Use configured error files if possible for early H1 errors

The H1 multiplexer is able to produce some errors on its own to report early
errors, before the stream is created. In that case, the error files of the
proxy were tested to detect empty files (or /dev/null) but they were not
used to produce the error itself.

But the documentation states that configured error files are used in all
cases. And in fact, it is not really a problem to use these files. We must
just format a full HTX message. Thanks to the previous patch, it is now
possible.

This patch should fix the issue #3032. It should be backported to 3.2. For
older versions, it must be discussed but it should be quite easy to do.
src/mux_h1.c