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
81010e41
Commit
81010e41
authored
Aug 17, 2011
by
Poul-Henning Kamp
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
eab8652f
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 @
81010e41
...
...
@@ -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 @
81010e41
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