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
d8508826
Commit
d8508826
authored
Mar 24, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for outgoing Connection: close handling
parent
e5576929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
c00064.vtc
bin/varnishtest/tests/c00064.vtc
+35
-0
c00065.vtc
bin/varnishtest/tests/c00065.vtc
+24
-0
No files found.
bin/varnishtest/tests/c00064.vtc
0 → 100644
View file @
d8508826
varnishtest "Connection: close in vcl_synth{}"
server s1 {
rxreq
txresp -status 400
} -start
varnish v1 -vcl+backend {
sub vcl_miss {
if (req.url == "/333") {
return (synth(333, "FOO"));
} else {
return (synth(334, "BAR"));
}
}
sub vcl_synth {
if (resp.status == 333) {
set resp.http.connection = "close";
}
}
} -start
client c1 {
txreq -url /334
rxresp
expect resp.status == 334
txreq -url /334
rxresp
expect resp.status == 334
txreq -url /333
rxresp
expect resp.status == 333
expect_close
} -run
bin/varnishtest/tests/c00065.vtc
0 → 100644
View file @
d8508826
varnishtest "Connection: close in vcl_deliver{}"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
sub vcl_deliver {
set resp.http.Connection = "close";
}
} -start
client c1 {
txreq
rxresp
expect_close
} -run
client c1 {
txreq
rxresp
expect_close
} -run
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