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
0e46b160
Commit
0e46b160
authored
Aug 17, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to commit the test-case for v4 grace
parent
58419339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
c00058.vtc
bin/varnishtest/tests/c00058.vtc
+38
-0
No files found.
bin/varnishtest/tests/c00058.vtc
0 → 100644
View file @
0e46b160
varnishtest "Test v4 grace"
server s1 {
rxreq
txresp -bodylen 3
rxreq
txresp -bodylen 6
sema r2 sync 2
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.ttl = 0.1s;
set beresp.grace = 10s;
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 3
delay 1
# We still get old object
txreq
rxresp
expect resp.bodylen == 3
# But bg fetch was kicked off
sema r2 sync 2
# And now we get the new object
txreq
rxresp
expect resp.bodylen == 6
} -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