From 5a940376442d2d30b0b9d438c59fee4b896ab11d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 3 Dec 2012 12:10:45 +0100 Subject: [PATCH] BUG/MEDIUM: comp: DEFAULT_MAXZLIBMEM was expressed in bytes and not megabytes The value is stored in bytes but was not multiplied. It would only affect packagers. --- src/haproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index b5f9f39d3..b62d261ff 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -121,7 +121,7 @@ struct global global = { .req_count = 0, .logsrvs = LIST_HEAD_INIT(global.logsrvs), #ifdef DEFAULT_MAXZLIBMEM - .maxzlibmem = DEFAULT_MAXZLIBMEM, + .maxzlibmem = DEFAULT_MAXZLIBMEM * 1024U * 1024U, #else .maxzlibmem = 0, #endif