MINOR: http-htx: Store errorloc/errorfile messages in http replies
During configuration parsing, error messages resulting of parsing of errorloc
and errorfile directives are now also stored as an http reply. So, for now,
these messages are stored as a buffer and as an http reply. To be able to
release all these http replies when haproxy is stopped, a global list is
used. We must do that because the same http reply may be referenced several
times by different proxies if it is defined in a default section.
diff --git a/include/types/http_htx.h b/include/types/http_htx.h
index e6752c1..f1f4685 100644
--- a/include/types/http_htx.h
+++ b/include/types/http_htx.h
@@ -66,6 +66,8 @@
char *http_errors; /* The http-errors section to use (type = HTTP_REPLY_ERRFILES).
* Should be resolved during post-check */
} body;
+ struct list list; /* next http_reply in the global list.
+ * Only used for replies defined in a proxy section */
};
/* A custom HTTP error message load from a row file and converted in HTX. The