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
97afc52e
Commit
97afc52e
authored
Jun 27, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Stabilize c93
On a loaded system the delay may not be enough, a barrier should.
parent
6ddb405f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
c00093.vtc
bin/varnishtest/tests/c00093.vtc
+8
-2
No files found.
bin/varnishtest/tests/c00093.vtc
View file @
97afc52e
varnishtest "Test resp.is_streaming with a UDS backend"
barrier b1 sock 2
server s1 -listen "${tmpdir}/s1.sock" {
rxreq
txresp -nolen -hdr "Content-Length: 10"
delay 1
barrier b1 sync
send "1234567890"
} -start
varnish v1 -vcl+backend {
import vtc;
sub vcl_recv {
if (req.url == "/synth") {
return(synth(200, "OK"));
...
...
@@ -18,11 +21,14 @@ varnish v1 -vcl+backend {
}
sub vcl_deliver {
set resp.http.streaming = resp.is_streaming;
if (req.http.barrier) {
vtc.barrier_sync(req.http.barrier);
}
}
} -start
client c1 {
txreq
txreq
-hdr "barrier: ${b1_sock}"
rxresp
expect resp.http.streaming == "true"
...
...
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