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
a9407650
Commit
a9407650
authored
Mar 28, 2024
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Add http_max_hdr coverage to r3709
For the sole purpose of having these limits tested in a single place.
parent
b96d83d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
r03709.vtc
bin/varnishtest/tests/r03709.vtc
+37
-0
No files found.
bin/varnishtest/tests/r03709.vtc
View file @
a9407650
...
@@ -3,6 +3,7 @@ varnishtest "h2 req limits"
...
@@ -3,6 +3,7 @@ varnishtest "h2 req limits"
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set http_req_hdr_len 40b"
varnish v1 -cliok "param.set http_req_hdr_len 40b"
varnish v1 -cliok "param.set http_req_size 512b"
varnish v1 -cliok "param.set http_req_size 512b"
varnish v1 -cliok "param.set http_max_hdr 32"
varnish v1 -vcl {
varnish v1 -vcl {
backend be none;
backend be none;
} -start
} -start
...
@@ -10,6 +11,7 @@ varnish v1 -vcl {
...
@@ -10,6 +11,7 @@ varnish v1 -vcl {
logexpect l1 -v v1 -g raw -q BogoHeader,LostHeader {
logexpect l1 -v v1 -g raw -q BogoHeader,LostHeader {
expect 0 1001 BogoHeader "Header too large: :path"
expect 0 1001 BogoHeader "Header too large: :path"
expect 0 1002 LostHeader "Header list too large"
expect 0 1002 LostHeader "Header list too large"
expect 0 1003 LostHeader "Too many headers"
} -start
} -start
client c1 {
client c1 {
...
@@ -39,6 +41,41 @@ client c1 {
...
@@ -39,6 +41,41 @@ client c1 {
rxrst
rxrst
expect rst.err == ENHANCE_YOUR_CALM
expect rst.err == ENHANCE_YOUR_CALM
} -run
} -run
stream next {
txreq -url "/http_max_hdr" \
-hdr hdr1 val1 \
-hdr hdr2 val2 \
-hdr hdr3 val3 \
-hdr hdr4 val4 \
-hdr hdr4 val4 \
-hdr hdr5 val5 \
-hdr hdr6 val6 \
-hdr hdr7 val7 \
-hdr hdr8 val8 \
-hdr hdr9 val9 \
-hdr hdr10 val10 \
-hdr hdr11 val11 \
-hdr hdr11 val11 \
-hdr hdr11 val11 \
-hdr hdr12 val12 \
-hdr hdr13 val13 \
-hdr hdr14 val14 \
-hdr hdr15 val15 \
-hdr hdr16 val16 \
-hdr hdr17 val17 \
-hdr hdr18 val18 \
-hdr hdr19 val19 \
-hdr hdr20 val20 \
-hdr hdr20 val20 \
-hdr hdr21 val21 \
-hdr hdr22 val22 \
-hdr hdr23 val23 \
-hdr hdr24 val24 \
-hdr hdr25 val25
rxrst
expect rst.err == ENHANCE_YOUR_CALM
} -run
} -run
} -run
logexpect l1 -wait
logexpect l1 -wait
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