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
b0a84bdf
Commit
b0a84bdf
authored
Jan 03, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add this testcase just to be sure the problem don't reappear.
parent
1cb04717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
0 deletions
+76
-0
r01086.vtc
bin/varnishtest/r01086.vtc
+76
-0
No files found.
bin/varnishtest/r01086.vtc
0 → 100644
View file @
b0a84bdf
varnishtest "#1086 junk after gzip from backend and streaming enabled"
server s1 {
# This one will be streamed
rxreq
txresp -nolen \
-hdr "Content-Encoding: gzip" \
-hdr "Transfer-Encoding: Chunked" \
-hdr "Set-Cookie: FOO"
send "14\r\n"
# An empty gzip file:
sendhex "1f8b"
sendhex "08"
sendhex "00"
sendhex "00000000"
sendhex "00"
sendhex "03"
sendhex "0300"
sendhex "00000000"
sendhex "00000000"
send "\r\n"
chunked "FOOBAR"
chunkedlen 0
accept
# This one will not be streamed
rxreq
txresp -nolen \
-hdr "Content-Encoding: gzip" \
-hdr "Transfer-Encoding: Chunked" \
-hdr "Set-Cookie: BAR"
send "14\r\n"
# An empty gzip file:
sendhex "1f8b"
sendhex "08"
sendhex "00"
sendhex "00000000"
sendhex "00"
sendhex "03"
sendhex "0300"
sendhex "00000000"
sendhex "00000000"
send "\r\n"
chunked "FOOBAR"
chunkedlen 0
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
if (beresp.http.set-cookie == "BAR") {
set beresp.do_stream = false;
}
}
} -start
client c1 {
txreq -hdr "Cookie: FOO"
rxresp
expect resp.status == 200
expect resp.bodylen == 0
} -run
delay .1
client c1 {
txreq -hdr "Cookie: BAR"
rxresp
expect resp.status == 503
} -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