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
52692182
Unverified
Commit
52692182
authored
Jul 09, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a simple content-length test
Ref #10
parent
0c410b25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
Makefile.am
src/Makefile.am
+1
-0
fellow_cl.vtc
src/vtc/fellow_cl.vtc
+49
-0
No files found.
src/Makefile.am
View file @
52692182
...
...
@@ -151,6 +151,7 @@ VTC_TESTS = \
vtc/fellow_coverage.vtc
\
vtc/fellow_c00093.vtc
\
vtc/fellow_t02005.vtc
\
vtc/fellow_cl.vtc
\
vtc/vut_slashmap.vtc
\
vtc/loadmasters.vtc
...
...
src/vtc/fellow_cl.vtc
0 → 100644
View file @
52692182
varnishtest "Simple content-length case"
server s1 -listen "${tmpdir}/s1.sock" {
rxreq
txresp -bodylen 65536
rxreq
txresp -bodylen 65537
rxreq
txresp -bodylen 131072
rxreq
txresp -bodylen 131073
} -start
varnish v1 \
-arg "-p fetch_maxchunksize=64k" \
-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);
}
sub vcl_backend_response {
return (deliver);
}
sub vcl_deliver {
set resp.http.streaming = resp.is_streaming;
}
} -start
client c1 {
txreq -url "/64k"
rxresp
expect resp.http.streaming == true
expect resp.bodylen == 65536
txreq -url "/64k+1"
rxresp
expect resp.http.streaming == true
expect resp.bodylen == 65537
txreq -url "/128k"
rxresp
expect resp.http.streaming == true
expect resp.bodylen == 131072
txreq -url "/128k+1"
rxresp
expect resp.http.streaming == true
expect resp.bodylen == 131073
} -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