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
b8351f7f
Commit
b8351f7f
authored
Dec 17, 2021
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VRB_Ignore() errors and connection close test case
parent
dcbe8b9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
f00008.vtc
bin/varnishtest/tests/f00008.vtc
+56
-0
No files found.
bin/varnishtest/tests/f00008.vtc
0 → 100644
View file @
b8351f7f
varnishtest "VRB_Ignore and connection close"
server s1 {
rxreq
txresp -body HIT
} -start
varnish v1 -arg "-p timeout_idle=1" -vcl+backend {
sub vcl_recv {
if (req.url == "/synth") {
return (synth(200, "SYNTH"));
}
}
} -start
# Prime an object
client c1 {
txreq -url /hit
rxresp
expect resp.status == 200
expect resp.body == HIT
} -run
# Test synth
client c2 {
txreq -req POST -url /synth -hdr "Content-Length: 2"
# Send 1 byte
send a
# Wait timeout_idle
delay 1.1
# Send 1 byte
send b
rxresp
expect resp.status == 200
expect resp.reason == SYNTH
expect resp.http.connection == close
timeout 0.5
expect_close
} -run
# Test cache hit
client c3 {
txreq -req GET -url /hit -hdr "Content-Length: 2"
# Send 1 byte
send a
# Wait timeout_idle
delay 1.1
# Send 1 byte
send b
rxresp
expect resp.status == 200
expect resp.body == HIT
expect resp.http.connection == close
timeout 0.5
expect_close
} -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