]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: build: allow packagers to specify the default maxzlibmem
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2012 14:52:53 +0000 (15:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2012 14:52:53 +0000 (15:52 +0100)
This is done by passing the default value to DEFAULT_MAXZLIBMEM in megs.

src/haproxy.c

index 32db2812922ad41ba6b781ae303ea1d6f62bad18..5e6ee40142260ce31dd6575d9fb479342c3311a7 100644 (file)
@@ -114,7 +114,11 @@ int  relative_pid = 1;             /* process id starting at 1 */
 struct global global = {
        .req_count = 0,
        .logsrvs = LIST_HEAD_INIT(global.logsrvs),
+#ifdef DEFAULT_MAXZLIBMEM
+       .maxzlibmem = DEFAULT_MAXZLIBMEM,
+#else
        .maxzlibmem = 0,
+#endif
        .comp_rate_lim = 0,
        .unix_bind = {
                 .ux = {