Commit a343a0da authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Beef the gzip parameters up to the usual defaults: window=15 and

memlevel 8.

Fix testcases which depend on older values.
parent bd96df29
......@@ -888,13 +888,15 @@ static const struct parspec input_parspec[] = {
0,
"6", ""},
{ "gzip_window", tweak_uint, &master.gzip_window, 8, 15,
"Gzip window size 8=least, 15=most compression",
"Gzip window size 8=least, 15=most compression.\n"
"Memory impact is 8=1k, 9=2k, ... 15=128k.",
0,
"8", ""},
{ "gzip_window", tweak_uint, &master.gzip_memlevel, 1, 9,
"Gzip memory level 1=least, 9=most compression",
"15", ""},
{ "gzip_memlevel", tweak_uint, &master.gzip_memlevel, 1, 9,
"Gzip memory level 1=slow/least, 9=fast/most compression.\n"
"Memory impact is 1=1k, 2=2k, ... 9=256k.",
0,
"1", ""},
"8", ""},
{ "gzip_stack_buffer", tweak_uint, &master.gzip_stack_buffer,
2048, UINT_MAX,
"Size of stack buffer used for gzip processing.\n"
......
......@@ -26,6 +26,8 @@ varnish v1 -arg "-p sess_workspace=131072 -p thread_pool_stack=262144" -vcl+back
varnish v1 -cliok "param.set esi_syntax 0xc"
varnish v1 -cliok "param.set http_gzip_support true"
varnish v1 -cliok "param.set gzip_tmp_space 1"
varnish v1 -cliok "param.set gzip_window 8"
varnish v1 -cliok "param.set gzip_memlevel 1"
client c1 {
txreq -hdr "Accept-Encoding: gzip"
......
......@@ -11,7 +11,10 @@ server s1 {
txresp -body {<H1><esi:include src="/foo"/></H1>}
} -start
varnish v1 -cliok "param.set http_gzip_support true" -vcl+backend {
varnish v1 \
-cliok "param.set http_gzip_support true" \
-cliok "param.set gzip_memlevel 1" \
-vcl+backend {
sub vcl_fetch {
set beresp.do_esi = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment