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
5b92665c
Unverified
Commit
5b92665c
authored
Oct 31, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify b62.vtc to trigger #33
parent
7dc2a23a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
fellow_b00062.vtc
src/vtc/fellow_b00062.vtc
+10
-4
No files found.
src/vtc/fellow_b00062.vtc
View file @
5b92665c
...
@@ -2,7 +2,9 @@ varnishtest "Test that we properly wait for certain 304 cases"
...
@@ -2,7 +2,9 @@ varnishtest "Test that we properly wait for certain 304 cases"
server s1 {
server s1 {
rxreq
rxreq
txresp -hdr "Last-Modified: Wed, 11 Sep 2013 13:36:55 GMT" -body "Geoff Still Rules"
txresp -hdr "Last-Modified: Wed, 11 Sep 2013 13:36:55 GMT" \
-hdr "Geoff: Still rules, just not the body" \
-bodylen 1048576
# The IMS request we will spend some time to process for the sake of
# The IMS request we will spend some time to process for the sake of
# this test.
# this test.
...
@@ -23,6 +25,10 @@ varnish v1 \
...
@@ -23,6 +25,10 @@ varnish v1 \
-arg "-E${libvmod_slash}" \
-arg "-E${libvmod_slash}" \
-arg "-sfellow=fellow,${tmpdir}/fellow_global.stv,100MB,1MB,64KB" \
-arg "-sfellow=fellow,${tmpdir}/fellow_global.stv,100MB,1MB,64KB" \
-vcl+backend {
-vcl+backend {
import slash;
sub vcl_init {
slash.tune_fellow(storage.fellow, chunk_exponent=12);
}
sub vcl_backend_response {
sub vcl_backend_response {
set beresp.ttl = 1s;
set beresp.ttl = 1s;
set beresp.grace = 1s;
set beresp.grace = 1s;
...
@@ -35,7 +41,7 @@ client c1 {
...
@@ -35,7 +41,7 @@ client c1 {
txreq
txreq
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.body
== "Geoff Still Rules"
expect resp.body
len == 1048576
} -run
} -run
# let the object's ttl and grace expire
# let the object's ttl and grace expire
...
@@ -47,7 +53,7 @@ client c2 {
...
@@ -47,7 +53,7 @@ client c2 {
rxresp
rxresp
# we did not disable grace in the request, so we should get the graced object here
# we did not disable grace in the request, so we should get the graced object here
expect resp.status == 200
expect resp.status == 200
expect resp.body
== "Geoff Still Rules"
expect resp.body
len == 1048576
} -start
} -start
delay .1
delay .1
...
@@ -57,7 +63,7 @@ client c3 {
...
@@ -57,7 +63,7 @@ client c3 {
txreq
txreq
rxresp
rxresp
expect resp.status == 200
expect resp.status == 200
expect resp.body
== "Geoff Still Rules"
expect resp.body
len == 1048576
} -start
} -start
client c2 -wait
client c2 -wait
...
...
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