[master] 1165edd Add a parameter to set the size of the stack buffers we use for gzip processing.

Poul-Henning Kamp phk at project.varnish-software.com
Fri Jan 21 12:48:56 CET 2011


commit 1165eddd80563b58713384555cadeb3893cd9f16
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jan 21 11:48:38 2011 +0000

    Add a parameter to set the size of the stack buffers we use for gzip
    processing.

diff --git a/bin/varnishd/heritage.h b/bin/varnishd/heritage.h
index d272d29..8eab742 100644
--- a/bin/varnishd/heritage.h
+++ b/bin/varnishd/heritage.h
@@ -200,6 +200,7 @@ struct params {
 	unsigned		http_range_support;
 
 	unsigned		http_gzip_support;
+	unsigned		gzip_stack_buffer;
 
 	double			critbit_cooloff;
 };
diff --git a/bin/varnishd/mgt_param.c b/bin/varnishd/mgt_param.c
index 26b4d1a..fe6805c 100644
--- a/bin/varnishd/mgt_param.c
+++ b/bin/varnishd/mgt_param.c
@@ -817,6 +817,11 @@ static const struct parspec input_parspec[] = {
 		"Enable support for HTTP GZIP compression.\n",
 		EXPERIMENTAL,
 		"off", "bool" },
+	{ "gzip_stack_buffer", tweak_uint, &master.gzip_stack_buffer,
+	        4, UINT_MAX,
+		"Size of stack buffer used for gzip processing.\n",
+		EXPERIMENTAL,
+		"64", "Kilobytes" },
 	{ "critbit_cooloff", tweak_timeout_double,
 		&master.critbit_cooloff, 60, 254,
 		"How long time the critbit hasher keeps deleted objheads "



More information about the varnish-commit mailing list