Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
6f7c8a77
Commit
6f7c8a77
authored
Aug 17, 2011
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
Aug 17, 2011
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
0006ddd1
Changes
2
Show 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 @
6f7c8a77
...
...
@@ -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 @
6f7c8a77
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