Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
a343a0da
Commit
a343a0da
authored
Jun 22, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Beef the gzip parameters up to the usual defaults: window=15 and
memlevel 8. Fix testcases which depend on older values.
parent
bd96df29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
mgt_param.c
bin/varnishd/mgt_param.c
+7
-5
e00022.vtc
bin/varnishtest/tests/e00022.vtc
+2
-0
g00002.vtc
bin/varnishtest/tests/g00002.vtc
+4
-1
No files found.
bin/varnishd/mgt_param.c
View file @
a343a0da
...
...
@@ -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
"
...
...
bin/varnishtest/tests/e00022.vtc
View file @
a343a0da
...
...
@@ -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"
...
...
bin/varnishtest/tests/g00002.vtc
View file @
a343a0da
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment