Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
a3cd9bc8
Unverified
Commit
a3cd9bc8
authored
Feb 28, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a fellowized test case for the previous two commits
parent
2835cb61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
Makefile.am
src/Makefile.am
+1
-0
fellow_c00093.vtc
src/vtc/fellow_c00093.vtc
+60
-0
No files found.
src/Makefile.am
View file @
a3cd9bc8
...
...
@@ -145,6 +145,7 @@ TESTS = \
vtc/fellow_global.vtc
\
vtc/fellow_global_shared.vtc
\
vtc/fellow_coverage.vtc
\
vtc/fellow_c00093.vtc
\
vtc/fellow_t02005.vtc
\
vtc/vut_slashmap.vtc
\
vtc/loadmasters.vtc
...
...
src/vtc/fellow_c00093.vtc
0 → 100644
View file @
a3cd9bc8
varnishtest "Test resp.is_streaming with a UDS backend"
# Same as c00069 without the synth case
barrier b1 sock 2
barrier b2 sock 2
server s1 -listen "${tmpdir}/s1.sock" {
rxreq
txresp -nolen -hdr "Content-Length: 65536"
barrier b1 sync
barrier b2 sync
delay .5
send_n 128 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
delay .5
send_n 128 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
} -start
varnish v1 \
-arg "-E${libvmod_slash}" \
-arg "-sfellow=fellow,${tmpdir}/fellow_global.stv,100MB,1MB,64KB" \
-vcl+backend {
import vtc;
import slash;
sub vcl_init {
slash.tune_fellow(storage.fellow, chunk_exponent=12);
}
sub vcl_backend_response {
vtc.barrier_sync("${b1_sock}");
return (deliver);
}
sub vcl_deliver {
set resp.http.streaming = resp.is_streaming;
if (obj.hits == 0) {
vtc.barrier_sync("${b2_sock}");
}
}
} -start
logexpect l1 -v v1 -q "Begin ~ bereq" -i End {
expect 0 1002 End
} -start
client c1 {
txreq
rxresp
expect resp.http.streaming == true
expect resp.bodylen == 65536
} -run
logexpect l1 -wait
delay .5
client c2 {
txreq
rxresp
expect resp.http.streaming == false
expect resp.bodylen == 65536
} -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