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
727882cd
Commit
727882cd
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
0e37f4f1
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 @
727882cd
varnishtest "Exercise h/2 sender flow control code"
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 {
server s1 {
rxreq
rxreq
...
@@ -23,7 +26,9 @@ varnish v1 -vcl+backend {
...
@@ -23,7 +26,9 @@ varnish v1 -vcl+backend {
}
}
sub vcl_deliver {
sub vcl_deliver {
vtc.barrier_sync("${b1_sock}");
if (req.http.barrier) {
vtc.barrier_sync(req.http.barrier);
}
}
}
} -start
} -start
...
@@ -43,7 +48,7 @@ client c1 {
...
@@ -43,7 +48,7 @@ client c1 {
} -start
} -start
stream 1 {
stream 1 {
txreq
txreq
-hdr barrier ${b1_sock}
barrier b1 sync
barrier b1 sync
delay .5
delay .5
txwinup -size 256
txwinup -size 256
...
@@ -61,15 +66,15 @@ client c1 {
...
@@ -61,15 +66,15 @@ client c1 {
client c2 {
client c2 {
stream 0 {
stream 0 {
barrier b
1
sync
barrier b
2
sync
} -start
} -start
stream 1 {
stream 1 {
txreq
txreq
-hdr barrier ${b2_sock}
txdata -data "fail"
txdata -data "fail"
rxrst
rxrst
expect rst.err == STREAM_CLOSED
expect rst.err == STREAM_CLOSED
barrier b
1
sync
barrier b
2
sync
} -run
} -run
stream 0 -wait
stream 0 -wait
...
@@ -77,8 +82,8 @@ client c2 {
...
@@ -77,8 +82,8 @@ client c2 {
client c3 {
client c3 {
stream 0 {
stream 0 {
barrier b
1
sync
barrier b
3
sync
barrier b
1
sync
barrier b
4
sync
delay .5
delay .5
txwinup -size 256
txwinup -size 256
delay .5
delay .5
...
@@ -89,17 +94,17 @@ client c3 {
...
@@ -89,17 +94,17 @@ client c3 {
} -start
} -start
stream 1 {
stream 1 {
txreq -req "POST" -nostrend
txreq -req "POST" -
hdr barrier ${b3_sock} -
nostrend
txdata -data "ok"
txdata -data "ok"
txdata -data "fail"
txdata -data "fail"
rxrst
rxrst
expect rst.err == STREAM_CLOSED
expect rst.err == STREAM_CLOSED
barrier b
1
sync
barrier b
3
sync
} -run
} -run
stream 3 {
stream 3 {
txreq
txreq
-hdr barrier ${b4_sock}
barrier b
1
sync
barrier b
4
sync
delay .5
delay .5
txwinup -size 256
txwinup -size 256
delay .5
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