MINOR: mux-h1: Add functions to send HTTP errors from the mux
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Oct 2020 15:41:36 +0000 (17:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commitc18fc234d975775e3d3e0b69a692c222ae4172bb
tree360ee2700f8f078e34f1f6b87bdf22d423263df3
parentce5e6bcb0457c8e57fcfc2f958c18c064191c59f
MINOR: mux-h1: Add functions to send HTTP errors from the mux

For now, this part is unsued. But this patch adds functions to handle errors
on idle and embryonic H1 connections and send corresponding HTTP error
messages to the client (400, 408 or 500). Thanks to previous patches, these
functions take care to update the right stats counters, but also the
counters tracked by the session.

A field to store the HTTP error code has been added in the H1C structure. It
is used for error retransmits, if any, and to get it in http logs. It is
used to return the mux exit status code when the MUX_EXIT_STATUS ctl
parameter is requested.
src/mux_h1.c