[master] c640301 Use the gzip_stack_buffer param throughout.

Poul-Henning Kamp phk at project.varnish-software.com
Fri Jan 21 15:30:25 CET 2011


commit c640301185b328c37bf382e1fd650099fa391029
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jan 21 12:11:10 2011 +0000

    Use the gzip_stack_buffer param throughout.

diff --git a/bin/varnishd/cache_gzip.c b/bin/varnishd/cache_gzip.c
index be34261..be64895 100644
--- a/bin/varnishd/cache_gzip.c
+++ b/bin/varnishd/cache_gzip.c
@@ -307,7 +307,7 @@ vfp_gunzip_bytes(struct sess *sp, struct http_conn *htc, size_t bytes)
 	struct storage *st;
 	ssize_t l, w;
 	int i = -100;
-	uint8_t	ibuf[64*1024];		/* XXX size ? */
+	uint8_t	ibuf[1024 * params->gzip_stack_buffer];
 	size_t dl;
 	const void *dp;
 
@@ -406,7 +406,7 @@ vfp_gzip_bytes(struct sess *sp, struct http_conn *htc, size_t bytes)
 	struct storage *st;
 	ssize_t l, w;
 	int i = -100;
-	uint8_t ibuf[64*1024];		/* XXX size ? */
+	uint8_t ibuf[1024 * params->gzip_stack_buffer];
 	size_t dl;
 	const void *dp;
 
diff --git a/bin/varnishd/cache_response.c b/bin/varnishd/cache_response.c
index dbfb520..0b7e713 100644
--- a/bin/varnishd/cache_response.c
+++ b/bin/varnishd/cache_response.c
@@ -247,7 +247,7 @@ res_WriteGunzipObj(struct sess *sp)
 	struct vgz *vg;
 	const void *dp;
 	char lenbuf[20];
-	char obuf[64*1024];	/* XXX: size? */
+	char obuf[1024 * params->gzip_stack_buffer];
 	size_t dl;
 	int i;
 



More information about the varnish-commit mailing list