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
eab8652f
Commit
eab8652f
authored
Aug 17, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restart in vcl_deliver{} would crash in vcl_fetch{} due to missing cleanup.
Found & Fixed by: Martin Fixes #979
parent
298c7c38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
cache_center.c
bin/varnishd/cache_center.c
+1
-0
r00979.vtc
bin/varnishtest/tests/r00979.vtc
+29
-0
No files found.
bin/varnishd/cache_center.c
View file @
eab8652f
...
...
@@ -233,6 +233,7 @@ cnt_prepresp(struct sess *sp)
AZ
(
sp
->
obj
);
sp
->
restarts
++
;
sp
->
director
=
NULL
;
sp
->
wrk
->
h_content_length
=
NULL
;
http_Setup
(
sp
->
wrk
->
bereq
,
NULL
);
http_Setup
(
sp
->
wrk
->
beresp
,
NULL
);
http_Setup
(
sp
->
wrk
->
resp
,
NULL
);
...
...
bin/varnishtest/tests/r00979.vtc
0 → 100644
View file @
eab8652f
varnishtest "r00979.vtc Test restart when do_stream in vcl_deliver"
server s1 {
rxreq
txresp -status 200 -body "1"
expect_close
accept
rxreq
txresp -status 200 -body "11"
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
set beresp.do_stream = true;
}
sub vcl_deliver {
if (req.restarts == 0) {
return (restart);
}
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
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