When haproxy is compiled without zlib or slz, the output of
haproxy -vv shows (null).
Make haproxy -vv output great again by providing the proper
information (which is what we did before).
This is for 1.8 only.
---
src/compression.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compression.c b/src/compression.c
index 27ab7f7..ecd2fa5 100644
--- a/src/compression.c
+++ b/src/compression.c
@@ -696,6 +696,8 @@ static void __comp_fetch_init(void)
memprintf(&ptr, "%s\nRunning on zlib version : %s", ptr, zlibVersion());
#elif defined(USE_SLZ)
memprintf(&ptr, "Built with libslz for stateless compression.");
+#else
+ memprintf(&ptr, "Built without compression support (neither USE_ZLIB nor USE_SLZ are set).");
#endif
memprintf(&ptr, "%s\nCompression algorithms supported :", ptr);
--
2.7.4
haproxy -vv shows (null).
Make haproxy -vv output great again by providing the proper
information (which is what we did before).
This is for 1.8 only.
---
src/compression.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compression.c b/src/compression.c
index 27ab7f7..ecd2fa5 100644
--- a/src/compression.c
+++ b/src/compression.c
@@ -696,6 +696,8 @@ static void __comp_fetch_init(void)
memprintf(&ptr, "%s\nRunning on zlib version : %s", ptr, zlibVersion());
#elif defined(USE_SLZ)
memprintf(&ptr, "Built with libslz for stateless compression.");
+#else
+ memprintf(&ptr, "Built without compression support (neither USE_ZLIB nor USE_SLZ are set).");
#endif
memprintf(&ptr, "%s\nCompression algorithms supported :", ptr);
--
2.7.4