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
ecd6aa72
Commit
ecd6aa72
authored
Oct 12, 2023
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Avoid cycling the barrier in t02014
It was particularly hard to follow once we reach client c3.
parent
5814981d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
t02014.vtc
bin/varnishtest/tests/t02014.vtc
+17
-12
No files found.
bin/varnishtest/tests/t02014.vtc
View file @
ecd6aa72
varnishtest "Exercise h/2 sender flow control code"
barrier b1 sock 3 -cyclic
barrier b1 sock 3
barrier b2 sock 3
barrier b3 sock 3
barrier b4 sock 3
server s1 {
rxreq
...
...
@@ -23,7 +26,9 @@ varnish v1 -vcl+backend {
}
sub vcl_deliver {
vtc.barrier_sync("${b1_sock}");
if (req.http.barrier) {
vtc.barrier_sync(req.http.barrier);
}
}
} -start
...
...
@@ -43,7 +48,7 @@ client c1 {
} -start
stream 1 {
txreq
txreq
-hdr barrier ${b1_sock}
barrier b1 sync
delay .5
txwinup -size 256
...
...
@@ -61,15 +66,15 @@ client c1 {
client c2 {
stream 0 {
barrier b
1
sync
barrier b
2
sync
} -start
stream 1 {
txreq
txreq
-hdr barrier ${b2_sock}
txdata -data "fail"
rxrst
expect rst.err == STREAM_CLOSED
barrier b
1
sync
barrier b
2
sync
} -run
stream 0 -wait
...
...
@@ -77,8 +82,8 @@ client c2 {
client c3 {
stream 0 {
barrier b
1
sync
barrier b
1
sync
barrier b
3
sync
barrier b
4
sync
delay .5
txwinup -size 256
delay .5
...
...
@@ -89,17 +94,17 @@ client c3 {
} -start
stream 1 {
txreq -req "POST" -nostrend
txreq -req "POST" -
hdr barrier ${b3_sock} -
nostrend
txdata -data "ok"
txdata -data "fail"
rxrst
expect rst.err == STREAM_CLOSED
barrier b
1
sync
barrier b
3
sync
} -run
stream 3 {
txreq
barrier b
1
sync
txreq
-hdr barrier ${b4_sock}
barrier b
4
sync
delay .5
txwinup -size 256
delay .5
...
...
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