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
15f5aa3d
Commit
15f5aa3d
authored
Apr 19, 2018
by
Nils Goroll
Committed by
Dridi Boukelmoune
Jun 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc sweep through tight backend workspace conditions
Ref: #2645
parent
f0232502
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
r02645.vtc
bin/varnishtest/tests/r02645.vtc
+25
-0
No files found.
bin/varnishtest/tests/r02645.vtc
0 → 100644
View file @
15f5aa3d
varnishtest "sweep through tight backend workspace conditions"
server s1 -repeat 100 {
rxreq
send "HTTP/1.1 200 OK\r\nTransfer-encoding: chunked\r\n\r\n00000004\r\n1234\r\n00000000\r\n\r\n"
} -start
varnish v1 -vcl+backend {
import vtc;
import std;
sub vcl_recv {
return (pass);
}
sub vcl_backend_fetch {
vtc.workspace_alloc(backend, -4 *
(std.integer(bereq.xid, 1002) - 1000) / 2);
}
} -start
client c1 -repeat 100 {
txreq -url "/"
# some responses will fail (503), some won't. All we care
# about here is the fact that we don't panic
rxresp
} -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