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
521fbc45
Unverified
Commit
521fbc45
authored
Mar 27, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stabilize test
parent
f65f7148
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
c00069.vtc
bin/varnishtest/tests/c00069.vtc
+14
-2
No files found.
bin/varnishtest/tests/c00069.vtc
View file @
521fbc45
varnishtest "Test resp.is_streaming"
barrier b1 sock 2
barrier b2 sock 2
server s1 {
rxreq
txresp -nolen -hdr "Content-Length: 10"
delay 1
barrier b1 sync
barrier b2 sync
send "1234567890"
} -start
varnish v1 -vcl+backend {
import vtc;
sub vcl_recv {
if (req.url == "/synth") {
return(synth(200, "OK"));
}
}
sub vcl_backend_response {
vtc.barrier_sync("${b1_sock}");
return (deliver);
}
sub vcl_synth {
set resp.http.streaming = resp.is_streaming;
}
sub vcl_deliver {
if (obj.hits == 0) {
vtc.barrier_sync("${b2_sock}");
}
set resp.http.streaming = resp.is_streaming;
}
} -start
...
...
@@ -36,4 +49,3 @@ client c1 {
rxresp
expect resp.http.streaming == "false"
} -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