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
98c23bb1
Commit
98c23bb1
authored
Jan 22, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A restart in vcl_fetch{} needs to loose the objcore as well.
Fixes #1253
parent
e7025e7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
r01253.vtc
bin/varnishtest/tests/r01253.vtc
+26
-0
No files found.
bin/varnishtest/tests/r01253.vtc
0 → 100644
View file @
98c23bb1
varnishtest "restarting a pass in vcl_fetch should not panic"
server s1 {
rxreq
txresp -status 304 -body "1234"
accept
rxreq
txresp -status 200 -body "56"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
sub vcl_fetch {
if (beresp.status != 200) {
return (restart);
}
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 2
} -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