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
0f8805f5
Commit
0f8805f5
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
Cleare do_stream on all esi objects, including included objects.
Found & Fixed by: Martin Fixes #978
parent
6f7c8a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
cache_center.c
bin/varnishd/cache_center.c
+1
-1
r00978.vtc
bin/varnishtest/tests/r00978.vtc
+40
-0
No files found.
bin/varnishd/cache_center.c
View file @
0f8805f5
...
...
@@ -718,7 +718,7 @@ cnt_fetchbody(struct sess *sp)
else
if
(
sp
->
wrk
->
is_gzip
)
sp
->
wrk
->
vfp
=
&
vfp_testgzip
;
if
(
sp
->
wrk
->
do_esi
)
if
(
sp
->
wrk
->
do_esi
||
sp
->
esi_level
>
0
)
sp
->
wrk
->
do_stream
=
0
;
if
(
!
sp
->
wantbody
)
sp
->
wrk
->
do_stream
=
0
;
...
...
bin/varnishtest/tests/r00978.vtc
0 → 100644
View file @
0f8805f5
varnishtest "r00978.vtc Test esi_level > 0 and do_stream"
server s1 {
rxreq
expect req.url == "/"
txresp -body {
<html>
Before include
<esi:include
src=
"/body"
sr=
"foo"
/>
After include
}
rxreq
expect req.url == "/body1"
txresp -body {
Included file
}
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.esi_level > 0) {
set req.url = req.url + req.esi_level;
}
}
sub vcl_fetch {
if (req.url == "/") {
set beresp.do_esi = true;
}
set beresp.do_stream = true;
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 65
expect resp.status == 200
} -run
varnish v1 -expect esi_errors == 0
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